Skip to content

Update what runs on CI #232

Update what runs on CI

Update what runs on CI #232

Workflow file for this run

on:
pull_request:
types:
- "opened"
- "reopened"
- "synchronize"
- "labeled"
- "unlabeled"
name: PR status checks
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm ci
- run: npm run format-check
test:
runs-on: ubuntu-latest
steps:

Check failure on line 27 in .github/workflows/pull-request.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pull-request.yml

Invalid workflow file

You have an error in your yaml syntax on line 27
- name: Checkout
uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm ci
- run: npm test
dogfood:
name: Dogfood the action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 # To run the version of the action from the PR.
- name: package*.json updated
uses: ./
with:
file-pattern: |
package.json
package-lock.json
skip-label: "skip package*.json"
- name: package-lock.json updated
uses: ./
with:
prereq-pattern: "package.json"
file-pattern: "package-lock.json"
skip-label: "skip package*.json"
- name: dist/index.js updated
uses: ./
with:
prereq-pattern: "src/*.res"
file-pattern: "dist/index.js"
skip-label: "skip packaging"