Skip to content

Commit

Permalink
M2-4835: Unify node versions among jobs and add dependency caching
Browse files Browse the repository at this point in the history
  • Loading branch information
sultanofcardio committed Feb 6, 2024
1 parent 6e9ccc5 commit 18e659b
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
name: CI
on: [pull_request]

env:
NODE_VERSION: 20.11.0

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

Expand All @@ -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
Expand Down

0 comments on commit 18e659b

Please sign in to comment.