Skip to content

Commit

Permalink
Improve extension-test.yml (#44)
Browse files Browse the repository at this point in the history
* Use actions/setup-node's caching

* Use node 16

* Use GuillaumeFalourd/[email protected]

from femiwiki/.github@450b7e7
  • Loading branch information
femiwiki-bot committed Apr 8, 2022
1 parent a15e74b commit 0f0c115
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/extension-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,9 @@ jobs:
composer install --prefer-dist --no-progress --no-interaction # $GITHUB_WORKSPACE
- name: Setup Node.js environment
uses: actions/setup-node@v2
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
node-version: '16'
cache: 'npm'

- name: Run npm because Quibble is not compatible with yarn.
run: |
Expand Down Expand Up @@ -241,7 +235,7 @@ jobs:
- name: Upload coverage to Codecov
if: ${{ matrix.stage == 'coverage' }}
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v2
with:
directory: /home/runner/cover

Expand Down

0 comments on commit 0f0c115

Please sign in to comment.