diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 83c21ba..06b9310 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,31 +1,23 @@ name: CI on: [ push, pull_request ] jobs: - Build: + build: strategy: matrix: os: [ ubuntu-latest ] - node-version: [ 16 ] + node-version: [ 20 ] runs-on: ${{ matrix.os }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Use Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - name: Cache Node.js modules - uses: actions/cache@v2 - with: - # npm cache files are stored in `~/.npm` on Linux/macOS - path: ~/.npm - key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.OS }}-node- - ${{ runner.OS }}- + cache: 'npm' - name: Install dependencies run: npm ci - name: Build