Skip to content

Commit

Permalink
ci: optimize deps installation
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed May 25, 2023
1 parent 3863477 commit 323a5b5
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions .github/workflows/ci.yml
Expand Up @@ -18,6 +18,9 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: '1.20'
cache-dependency-path: |
go.sum
caddy/go.sum
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand All @@ -35,18 +38,9 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: '1.20'

- uses: actions/cache@v3
with:
path: |
~/go/pkg/mod # Module download cache
~/.cache/go-build # Build cache (Linux)
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install project dependencies
run: go get
cache-dependency-path: |
go.sum
caddy/go.sum
- name: Use go-deadlock
run: ./tests/use-go-deadlock.sh
Expand Down Expand Up @@ -74,19 +68,14 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: '16'

- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
cache: 'npm'
cache-dependency-path: conformance-tests/package-lock.json

- name: Install Playwrigth dependencies
working-directory: conformance-tests/
run: npm ci

- name: Install Playwright
- name: Install playwright browsers
working-directory: conformance-tests/
run: npx playwright install --with-deps

Expand Down

0 comments on commit 323a5b5

Please sign in to comment.