Skip to content

Commit

Permalink
updates main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Antonelli committed Aug 19, 2024
1 parent a18da38 commit be84fc9
Showing 1 changed file with 5 additions and 24 deletions.
29 changes: 5 additions & 24 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: 20

- name: Cache Node.js modules
uses: actions/cache@v4
Expand All @@ -39,25 +39,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Cache Node.js modules
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci

- name: Build the project
run: npm run build

- name: Cypress run
uses: cypress-io/github-action@v6
env:
Expand Down Expand Up @@ -91,15 +72,15 @@ jobs:
# Job for running unit tests and uploading coverage report
Unit-Tests:
runs-on: ubuntu-latest
timeout-minutes: 10
timeout-minutes: 5
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: 20

- name: Cache Node.js modules
uses: actions/cache@v4
Expand Down

0 comments on commit be84fc9

Please sign in to comment.