diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1ef0b1b3..b60dff02 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,6 +6,20 @@ env: npm_config_cache: /tmp/npm-cache jobs: + lint: + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - name: "Checkout code" + uses: actions/checkout@v4 + - name: "Use Node.js" + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + - run: npm install + + - run: npm run lint + unit-tests: runs-on: ubuntu-latest strategy: @@ -25,13 +39,12 @@ jobs: - id: cache-npm name: restore npm cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: - key: npm-cache-${{ github.ref_name }} + key: npm-cache-${{ github.ref_name }}-${{ matrix.node-version }}-unit-tests path: ${{ env.npm_config_cache }} - run: npm install - - run: npm run lint - run: npm run test-unit integration-tests: @@ -53,9 +66,9 @@ jobs: - id: cache-npm name: restore npm cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: - key: npm-cache-${{ github.ref_name }} + key: npm-cache-${{ github.ref_name }}-${{ matrix.node-version }}-integration-tests path: ${{ env.npm_config_cache }} - run: npm install @@ -66,7 +79,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [16.x] + node-version: [18.x] steps: - name: checkout uses: actions/checkout@v4 @@ -77,9 +90,9 @@ jobs: - id: cache-npm name: restore npm cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: - key: npm-cache-${{ github.ref_name }} + key: npm-cache-${{ github.ref_name }}-${{ matrix.node-version }}-e2e-tests path: ${{ env.npm_config_cache }} - run: npm install