-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c77bbba
commit 610a37f
Showing
2 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: 🚜 CI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request: {} | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
name: ⬣ ESLint | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
|
||
- name: 🍞 Setup bun | ||
uses: oven-sh/setup-bun@v1 | ||
|
||
- name: 📥 Download deps | ||
uses: bun install | ||
|
||
- name: 🔬 Lint | ||
run: bun run lint | ||
|
||
typecheck: | ||
name: ʦ TypeScript | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
|
||
- name: 🍞 Setup bun | ||
uses: oven-sh/setup-bun@v1 | ||
|
||
- name: 📥 Download deps | ||
uses: bun install | ||
|
||
- name: 🔎 Type check | ||
run: bun run typecheck --if-present | ||
|
||
vitest: | ||
name: ⚡ Vitest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
|
||
- name: 🍞 Setup bun | ||
uses: oven-sh/setup-bun@v1 | ||
|
||
- name: 📥 Download deps | ||
uses: bun install | ||
|
||
- name: 🏄 Copy test env vars | ||
run: cp .env.example .env | ||
|
||
- name: ⚡ Run vitest | ||
run: npm run test -- --coverage |
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