-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (51 loc) · 1.58 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: build
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
schedule:
# run validation against latest unleash-server image
- cron: "30 5 * * 1-5"
permissions:
packages: read
jobs:
build:
strategy:
matrix:
image:
- "ghcr.io/ivarconr/unleash-enterprise:5.9"
- "unleashorg/unleash-server:5.9"
- "ghcr.io/ivarconr/unleash-enterprise:5.12"
- "unleashorg/unleash-server:5.12"
- "ghcr.io/ivarconr/unleash-enterprise:6.0"
- "unleashorg/unleash-server:6.0"
- "ghcr.io/ivarconr/unleash-enterprise:latest"
- "unleashorg/unleash-server:latest"
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
- name: Login to ghcr
if: contains(matrix.image, 'unleash-enterprise')
uses: docker/login-action@v2
with:
registry: ghcr.io
username: gastonfournier
password: ${{ secrets.GHCR_TOKEN }}
- name: Setup enterprise docker image
if: contains(matrix.image, 'unleash-enterprise')
run: |
echo UNLEASH_DOCKER_IMAGE=${{ matrix.image }} >> $GITHUB_ENV
echo UNLEASH_ENTERPRISE=true >> $GITHUB_ENV
- name: Startup services ${{ matrix.image }}
run: docker compose up -d --wait -t 60
env:
UNLEASH_DEV_LICENSE: ${{ secrets.UNLEASH_DEV_LICENSE }}
- name: Tests ${{ matrix.image }}
run: go test -v -cover ./test/...