diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index eb033c4..0309110 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -4,31 +4,30 @@ name: Testing on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] + push: + branches: ["master"] + pull_request: + branches: ["master"] jobs: - build: + build: + runs-on: ubuntu-latest - runs-on: ubuntu-latest + strategy: + matrix: + node-version: [16.x, 18.x, 20.x, 22.x] - strategy: - matrix: - node-version: [16.x, 18.x, 20.x, 22.x] - - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npm run build --if-present - - run: npm run lint --if-present - - run: npm test - - run: npm run e2e --if-present - env: - CI: true + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + - run: npm ci + - run: npm run build --if-present + - run: npm run lint --if-present + - run: npm test + - run: npm run e2e --if-present + env: + CI: true