Skip to content

Handle push race in matrix jobs with configurable retries #31

Handle push race in matrix jobs with configurable retries

Handle push race in matrix jobs with configurable retries #31

Workflow file for this run

name: Build and test
on:
workflow_dispatch:
push:
paths:
- "**.js"
- "package.json"
- ".github/workflows/build.yml"
pull_request:
paths:
- "**.js"
- "package.json"
permissions:
contents: read
actions: read
checks: write
jobs:
test:
if: |
!contains(toJSON(github.event.commits.*.message), '[skip-ci]') &&
!startsWith(github.ref, 'refs/tags')
name: Generate build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version-file: ".nvmrc"
cache: "yarn"
- run: yarn install --frozen-lockfile
- run: yarn test-ci
- run: yarn build && yarn test-dist-ci
- name: Test Report
uses: dorny/test-reporter@v3
if: ${{ github.repository == 'ePlus-DEV/blog-post-workflow@v1' && github.event_name != 'pull_request' && (success() || failure()) }}
with:
name: Mocha Tests
path: "*-report.json"
reporter: mocha-json