Skip to content

Commit

Permalink
chore: add github workflow for typecheck and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
joris-gallot committed May 5, 2024
1 parent 5575cb0 commit 568b032
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/global.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 🔨

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
tsc_and_lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: Use pnpm
uses: pnpm/[email protected]
with:
package_json_file: package.json

- name: Install
run: pnpm install --frozen-lockfile

- name: Typecheck
run: pnpm typecheck

- name: Lint
run: pnpm lint
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@antfu/eslint-config": "^2.16.1",
"@types/node": "^20.12.8",
"eslint": "^9.2.0",
"typescript": "^5.4.5",
"unbuild": "^2.0.0",
"vitest": "^1.6.0"
}
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 568b032

Please sign in to comment.