Skip to content

Commit

Permalink
Use path without getter
Browse files Browse the repository at this point in the history
  • Loading branch information
tancredi committed Nov 18, 2022
1 parent de37869 commit 5b9aeb2
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,22 @@ jobs:

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: '${{ env.NODE }}'

- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
- run: npm ci

- run: npm run lint

- run: npm run typecheck

test:
Expand All @@ -42,21 +47,22 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Get npm cache directory
id: npm-cache
run: |
echo "{dir}=$(npm config get cache)"

- uses: actions/cache@v3
with:
path: ${{ steps.npm-cache.outputs.dir }}
path: ~/.npm
key: ${{ matrix.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ matrix.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
${{ matrix.os }}-node-v${{ matrix.node }}-
- run: npm ci

- run: npm run build

- run: npm test

0 comments on commit 5b9aeb2

Please sign in to comment.