From cb400e7b22fdc2c67780b388eeb7d27217833b3b Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Wed, 15 Feb 2023 15:01:14 -0800 Subject: [PATCH] Cache Go modules between test runs --- .github/workflows/browser-testing.yml | 1 + .github/workflows/go-lint.yml | 1 + .github/workflows/hls-tests.yml | 1 + .github/workflows/screenshots.yml | 1 + .github/workflows/test.yaml | 2 ++ 5 files changed, 6 insertions(+) diff --git a/.github/workflows/browser-testing.yml b/.github/workflows/browser-testing.yml index e9f6d6166..dce6a507b 100644 --- a/.github/workflows/browser-testing.yml +++ b/.github/workflows/browser-testing.yml @@ -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 diff --git a/.github/workflows/go-lint.yml b/.github/workflows/go-lint.yml index 124f773ef..763dbe880 100644 --- a/.github/workflows/go-lint.yml +++ b/.github/workflows/go-lint.yml @@ -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 diff --git a/.github/workflows/hls-tests.yml b/.github/workflows/hls-tests.yml index 53d100cf7..b0df0e943 100644 --- a/.github/workflows/hls-tests.yml +++ b/.github/workflows/hls-tests.yml @@ -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 diff --git a/.github/workflows/screenshots.yml b/.github/workflows/screenshots.yml index cd235df4f..fd64d9485 100644 --- a/.github/workflows/screenshots.yml +++ b/.github/workflows/screenshots.yml @@ -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 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 9b86244b3..e25f2da3e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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: uses: actions/setup-go@v3 with: go-version: '^1' + cache: true - name: Run tests run: go test ./...