Skip to content

Commit

Permalink
feat(ci): add build and test github workflow
Browse files Browse the repository at this point in the history
add build, test, typecheck and finally buid tasks to perform automatically when code pushed to main
branch.

re #1
  • Loading branch information
mohammadGh committed Feb 26, 2024
1 parent 5a2ec3f commit 874e155
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build-typecheck-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: build-typecheck-test

on:
push:
branches:
- main

pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Set node
uses: actions/setup-node@v3
with:
node-version: lts/*

- name: Setup Universal Package Manager
run: npm i -g @antfu/ni

- name: Install
run: nci

- name: Lint
run: nr lint

Check failure on line 34 in .github/workflows/build-typecheck-test.yml

View workflow job for this annotation

GitHub Actions / lint

Trailing spaces not allowed
- name: Typecheck
run: nr typecheck

- name: Test
run: nr test

0 comments on commit 874e155

Please sign in to comment.