summaryrefslogtreecommitdiffstats
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-08-11 21:28:55 +1000
committerJesse Duffield <jessedduffield@gmail.com>2022-08-13 13:55:09 +1000
commit610eddfe05cf68861bcfa1566d0d2d43aacab3fc (patch)
tree5bf0bfa66a92161f2a22f2fa952530ce3ab8a79e /.github/workflows/ci.yml
parent1ef6f4c0e1f71d1285b9892b94c6e519d2739521 (diff)
fix CI
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml30
1 files changed, 27 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5bf5ecfdf..c0b695e5b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -46,14 +46,38 @@ jobs:
# we're passing -short so that we skip the integration tests, which will be run in parallel below
run: |
go test ./... -short
- integration-tests:
+ integration-tests-old:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
parallelism: [5]
index: [0,1,2,3,4]
- name: "Integration Tests (${{ matrix.index }}/${{ matrix.parallelism }})"
+ name: "Integration Tests (Old pattern) (${{ matrix.index }}/${{ matrix.parallelism }})"
+ env:
+ GOFLAGS: -mod=vendor
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+ - name: Setup Go
+ uses: actions/setup-go@v1
+ with:
+ go-version: 1.18.x
+ - name: Cache build
+ uses: actions/cache@v1
+ with:
+ path: |
+ ~/.cache/go-build
+ ~/go/pkg/mod
+ key: ${{runner.os}}-go-${{hashFiles('**/go.sum')}}-test
+ restore-keys: |
+ ${{runner.os}}-go-
+ - name: Test code
+ run: |
+ PARALLEL_TOTAL=${{ matrix.parallelism }} PARALLEL_INDEX=${{ matrix.index }} go test pkg/integration/deprecated/*.go
+ integration-tests:
+ runs-on: ubuntu-latest
+ name: "Integration Tests"
env:
GOFLAGS: -mod=vendor
steps:
@@ -74,7 +98,7 @@ jobs:
${{runner.os}}-go-
- name: Test code
run: |
- PARALLEL_TOTAL=${{ matrix.parallelism }} PARALLEL_INDEX=${{ matrix.index }} go test pkg/gui/gui_test.go
+ go test pkg/integration/*.go
build:
runs-on: ubuntu-latest
env: