Browse Source

Cache Go modules between test runs

gek/test-caches
Gabe Kangas 2 years ago
parent
commit
cb400e7b22
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 1
      .github/workflows/browser-testing.yml
  2. 1
      .github/workflows/go-lint.yml
  3. 1
      .github/workflows/hls-tests.yml
  4. 1
      .github/workflows/screenshots.yml
  5. 2
      .github/workflows/test.yaml

1
.github/workflows/browser-testing.yml

@ -24,6 +24,7 @@ jobs: @@ -24,6 +24,7 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: '1.18.8'
cache: true
- name: Install Google Chrome
run: sudo apt-get install google-chrome-stable

1
.github/workflows/go-lint.yml

@ -29,6 +29,7 @@ jobs: @@ -29,6 +29,7 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: '1.18.8'
cache: true
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3

1
.github/workflows/hls-tests.yml

@ -28,6 +28,7 @@ jobs: @@ -28,6 +28,7 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: '1.18.8'
cache: true
- name: Cache node modules
uses: actions/cache@v2

1
.github/workflows/screenshots.yml

@ -18,6 +18,7 @@ jobs: @@ -18,6 +18,7 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: '1.18.8'
cache: true
- name: Cache node modules
uses: actions/cache@v2

2
.github/workflows/test.yaml

@ -22,6 +22,7 @@ jobs: @@ -22,6 +22,7 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: '^1'
cache: true
- name: Run tests
run: go test ./...
@ -43,6 +44,7 @@ jobs: @@ -43,6 +44,7 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: '^1'
cache: true
- name: Run tests
run: go test ./...

Loading…
Cancel
Save