name: build on: [pull_request] jobs: build: runs-on: ubuntu-latest strategy: matrix: node-version: [20.x] steps: - name: Checkout repository uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - name: Install dependencies run: yarn install - name: Lint files run: yarn run lint - name: Build library and website run: yarn run build - name: Run unit tests run: yarn test