Skip to content

Merge pull request #1096 from mbrobbel/dependabot/npm_and_yarn/eslint… #1965

Merge pull request #1096 from mbrobbel/dependabot/npm_and_yarn/eslint…

Merge pull request #1096 from mbrobbel/dependabot/npm_and_yarn/eslint… #1965

Workflow file for this run

name: Check
on:
push:
branches:
- master
- staging
- trying
pull_request:
jobs:
pack:
name: Pack
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: "20"
- run: npm ci --ignore-scripts
- run: npm run build
- run: npm run pack
- if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: git diff --exit-code
- if: github.event_name == 'push' && github.ref == 'refs/heads/master' && failure()
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git commit -am "Create dist package"
git push
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: "20"
- run: npm ci --ignore-scripts
- run: npm run build
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- run: npm test
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: "20"
- run: npm ci --ignore-scripts
- run: npm run format-check
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: "20"
- run: npm ci --ignore-scripts
- run: npm run lint