Bump @octokit/plugin-paginate-rest from 9.0.0 to 9.2.2 #1952
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node.js Tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [ '14', '16', '18' ] | |
name: Node ${{ matrix.node }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- run: npm install | |
- run: npm test | |
build: | |
runs-on: ubuntu-latest | |
name: Check build and format have been run | |
steps: | |
- name: Generate token | |
id: generate_token | |
uses: tibdex/[email protected] | |
with: | |
app_id: ${{ secrets.APP_ID }} | |
private_key: ${{ secrets.APP_PRIVATE_KEY }} | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ steps.generate_token.outputs.token }} | |
fetch-depth: 0 | |
- name: Set git user config | |
run: git config user.email "217586+NodeBuilder[bot]@users.noreply.github.com" && git config user.name "Node Builder" | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
- run: npm install | |
- run: npm run format | |
- run: npm run build | |
- name: Fail if files changed | |
id: file-changed | |
run: | | |
if [[ `git status --porcelain` ]]; then | |
git status --porcelain | |
git diff | |
exit 1 | |
else | |
exit 0 | |
fi | |
- name: Fix missing build | |
if: ${{ failure() && steps.file-changed.conclusion == 'failure' }} | |
run: git checkout ${{ github.event.pull_request.head.ref }} && npm ci && npm run format && npm run build && git add --all && git commit -m "npm run build" && git push |