Skip to content

Commit

Permalink
Run publint in Github Actions (#52)
Browse files Browse the repository at this point in the history
closes #51

Runs publint during the `test` job. Also merges the lint job into the
test job.
  • Loading branch information
bartveneman authored May 5, 2024
1 parent bff377f commit c179f8f
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@ on:
branches: [main]

jobs:
lint:
name: Lint JS
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Lint JS
run: npx --yes oxlint@latest -D perf
test:
name: Unit tests
runs-on: ubuntu-latest
Expand All @@ -30,7 +22,13 @@ jobs:
cache: "npm"
- name: Install dependencies
run: npm install --ignore-scripts --no-audit
- name: Run unit tests
- name: Unit tests
run: npm test
- name: Test types
- name: Check types
run: npm run check
- name: Lint JS
run: npx --yes oxlint@latest -D perf
- name: Build package
run: npm run build
- name: "Publint"
run: "npx --yes publint"

0 comments on commit c179f8f

Please sign in to comment.