Update what runs on CI #232
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
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: | ||
- 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" |