Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
ci: Use matrix strategy for e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Mar 26, 2020
1 parent 1b0d35e commit 1beb4d5
Showing 1 changed file with 6 additions and 67 deletions.
73 changes: 6 additions & 67 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ jobs:
run: make check-generated
- name: Build containers
run: make all
e2e-1:
e2e:
runs-on: ubuntu-latest
needs: build
#needs: build
strategy:
matrix:
test: ['10_* 11_* 12_*', '13_* 14_* 15_*', '16_* 17_* 20_*', '21_* 22_*']
steps:
- uses: actions/checkout@v2
- uses: engineerd/[email protected]
Expand All @@ -52,68 +55,4 @@ jobs:
run: make all
- name: Run tests
run: |
E2E_TESTS='10_* 11_* 12_*' make e2e-gh
e2e-2:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- uses: engineerd/[email protected]
- name: Restore Cache
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Setup Go
uses: actions/setup-go@v2-beta
with:
go-version: 1.14.x
- name: Build containers
run: make all
- name: Run tests
run: E2E_TESTS='13_* 14_* 15_*' make e2e-gh
e2e-3:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- uses: engineerd/[email protected]
- name: Restore Cache
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Setup Go
uses: actions/setup-go@v2-beta
with:
go-version: 1.14.x
- name: Build containers
run: make all
- name: Run tests
run: E2E_TESTS='16_* 17_*' make e2e-gh
e2e-4:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- uses: engineerd/[email protected]
- name: Restore Cache
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Setup Go
uses: actions/setup-go@v2-beta
with:
go-version: 1.14.x
- name: Build containers
run: make all
- name: Run tests
run: E2E_TESTS='20_* 21_* 22_*' make e2e-gh
E2E_TESTS='${{ matrix.test }}' make e2e-gh

0 comments on commit 1beb4d5

Please sign in to comment.