chore: fix test node and readd cache

This commit is contained in:
Hugo Dias
2021-02-12 17:53:46 +00:00
parent 8373dec1af
commit 3095240532

View File

@ -17,16 +17,16 @@ jobs:
with: with:
node-version: 14 node-version: 14
- uses: actions/checkout@v2 - uses: actions/checkout@v2
# - name: Get yarn cache directory path - name: Get yarn cache directory path
# id: yarn-cache-dir-path id: yarn-cache-dir-path
# run: echo "::set-output name=dir::$(yarn cache dir)" run: echo "::set-output name=dir::$(yarn cache dir)"
# - uses: actions/cache@v2 - uses: actions/cache@v2
# id: yarn-cache id: yarn-cache
# with: with:
# path: ${{ steps.yarn-cache-dir-path.outputs.dir }} path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
# restore-keys: | restore-keys: |
# ${{ runner.os }}-yarn- ${{ runner.os }}-yarn-
- run: yarn --prefer-offline --frozen-lockfile - run: yarn --prefer-offline --frozen-lockfile
- run: yarn run check - run: yarn run check
- run: yarn run build - run: yarn run build
@ -59,7 +59,7 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-yarn- ${{ runner.os }}-yarn-
- run: yarn --prefer-offline --frozen-lockfile - run: yarn --prefer-offline --frozen-lockfile
- run: aegir test -t node --bail --cov - run: npx aegir test -t node --bail --cov
- uses: codecov/codecov-action@v1 - uses: codecov/codecov-action@v1
test-chrome: test-chrome: