# This job run on GitHub actions on every PR opened. # The purpose is to perform the build and all module tests. name: CI on: pull_request: branches: [ '**' ] concurrency: group: ${{ github.workflow }}-${{ github.event.number || github.sha }} cancel-in-progress: true jobs: build-and-test: timeout-minutes: 5 runs-on: ubuntu-latest strategy: matrix: node-version: [16.15.0] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - run: yarn install - run: yarn build - run: yarn test