diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 899bf73d7..4a2cc5882 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,15 +15,20 @@ jobs: runs-on: macos-latest steps: - name: Checkout Branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 + - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18.13.0 - - name: Install - run: npm install + node-version-file: "package.json" + cache: "npm" + + - name: Install Node Packages + run: npm ci + - name: Run linters run: npm run format + - name: Check if anything changed run: | git_status="`LC_ALL=C git status --porcelain --ignore-submodules -unormal 2>&1`" @@ -35,6 +40,7 @@ jobs: git diff -U8 exit 1 fi + build: name: Build runs-on: macos-latest @@ -45,19 +51,25 @@ jobs: - name: Install Firefox if: ${{ matrix.browser == 'firefox' }} run: brew install --cask firefox + - name: Checkout Branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 + - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18.13.0 - - name: Install - run: npm install - - name: Run tests + node-version-file: "package.json" + cache: "npm" + + - name: Install Node Packages + run: npm ci + + - name: Run Unit Tests run: | echo "Running in $BROWSER" npm run test:${{ matrix.browser }} - - name: Run end2end + + - name: Run end2end Tests run: | echo "Running in $BROWSER" npm run test-e2e:${{ matrix.browser }} diff --git a/package-lock.json b/package-lock.json index cdd1e17ec..f783e78da 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,7 +31,7 @@ "typescript": "^5.0.4" }, "engines": { - "node": ">=18.13.0", + "node": ">=22.0.0", "npm": ">=8.19.3" } }, diff --git a/package.json b/package.json index 59a220303..25a5cc716 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "3.0.0-alpha", "description": "An open source repository for the Speedometer benchmark.", "engines": { - "node": ">=18.13.0", + "node": ">=22.0.0", "npm": ">=8.19.3" }, "repository": {