Skip to content

Commit

Permalink
.github: get CI working
Browse files Browse the repository at this point in the history
  • Loading branch information
jzelinskie committed Jan 9, 2024
1 parent fc9f3f6 commit 04ea9c2
Show file tree
Hide file tree
Showing 4 changed files with 695 additions and 24 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/lint.yaml

This file was deleted.

20 changes: 14 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,30 @@ name: Test
on:
push:
branches:
- master
- main
pull_request:
branches:
- "*"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: bahmutov/npm-install@v1
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v4
with:
cache: pnpm
- name: Install
run: pnpm install
- name: ESLint
run: pnpm run lint
- name: Generate grammar
run: npm run generate
run: pnpm run generate
- name: Verify generation
uses: "chainguard-dev/actions/nodiff@main"
with:
fixup-command: "npm run generate"
- name: Test corpus
run: npm run test
run: pnpm run test
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules/*
pnpm-lock.yaml
Cargo.lock
target

Expand Down
Loading

0 comments on commit 04ea9c2

Please sign in to comment.