diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6ce072e..d90082b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,5 @@ name: 'build-test' + on: push: @@ -6,17 +7,11 @@ jobs: build-and-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout - - uses: actions/setup-node + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: '20' - - name: Cache Node.js modules - uses: actions/cache - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + cache: 'npm' - name: Install dependencies run: npm ci - name: Build, format, lint, package, and run tests