diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index edfcca2f2f..6353c006d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,9 @@ name: CI on: [pull_request] + +env: + NODE_VERSION: 20.11.0 + jobs: lint: name: Lint @@ -7,7 +11,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} @@ -31,8 +35,20 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + - name: Install deps - run: npm install + run: npm ci + + - uses: actions/cache@v4 + with: + path: | + ~/node_modules + key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} + - name: Running tests env: REACT_APP_API_DOMAIN: http://localhost:8080