From 5b9aeb21833dfdb9dee73fa797418fe38b80f58f Mon Sep 17 00:00:00 2001 From: Tancredi Trugenberger Date: Fri, 18 Nov 2022 15:12:39 +0000 Subject: [PATCH] Use path without getter --- .github/workflows/test.yaml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 0982a147..390d3f48 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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: @@ -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