name: Build & Test on: pull_request: paths-ignore: - '**.md' push: branches: - main - releases/* paths-ignore: - '**.md' jobs: build: runs-on: ${{ matrix.operating-system }} strategy: fail-fast: false matrix: operating-system: [ubuntu-latest, windows-latest, macOS-latest] steps: - name: Checkout uses: actions/checkout@v3 - name: Set Node.js 16 uses: actions/setup-node@v3 with: node-version: 16.x cache: npm - name: Install dependencies run: npm ci --ignore-scripts - name: Format, lint, build and test run: npm run all:ci dry-run-test: # make sure the action works on a clean machine without building runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: ./ id: stale with: stale-issue-message: 'This issue is stale' stale-pr-message: 'This PR is stale' debug-only: true - name: Print outputs run: echo ${{ join(steps.stale.outputs.*, ',') }}