name: Run tests (branch) on: push: branches-ignore: - master - alpha - beta - next tags-ignore: - 'v*' permissions: contents: read jobs: build: runs-on: ubuntu-latest strategy: matrix: node-version: [16.x] name: Node.js ${{ matrix.node-version }} steps: - name: Git checkout uses: actions/checkout@v3 with: fetch-depth: 0 - name: Setup Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - name: Install dependencies run: npm install env: CI: true - name: Test run: npm run test - name: Build run: npm run build:dist