diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 950018e..36b106f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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: @@ -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