diff --git a/.github/workflows/javascript-test.yml b/.github/workflows/javascript-test.yml index 19045fa..39c8eef 100644 --- a/.github/workflows/javascript-test.yml +++ b/.github/workflows/javascript-test.yml @@ -3,41 +3,26 @@ name: Continuous testing on: [pull_request] jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Use node 18 - uses: actions/setup-node@v3 - with: - node-version: 18 - - uses: c-hive/gha-yarn-cache@v2 - - name: Install dependencies - run: yarn install --frozen-lockfile - - run: yarn run lint - - build: + test: + strategy: + matrix: + command: [lint, build, test] runs-on: ubuntu-latest + name: running ${{ matrix.command }} steps: - uses: actions/checkout@v3 - name: Use node 18 uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 - uses: c-hive/gha-yarn-cache@v2 - name: Install dependencies run: yarn install --frozen-lockfile - - run: yarn run build + - run: yarn run ${{ matrix.command }} - test: + conclude: runs-on: ubuntu-latest + name: All tests passed + needs: [test] steps: - - uses: actions/checkout@v3 - - name: Use node 18 - uses: actions/setup-node@v3 - with: - node-version: 18 - - uses: c-hive/gha-yarn-cache@v2 - - name: Install dependencies - run: yarn install --frozen-lockfile - - run: yarn run test + - run: echo '### Good job! All the tests passed 🚀' >> $GITHUB_STEP_SUMMARY