Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bisquit committed Aug 10, 2023
1 parent d6b47ec commit 9ba5701
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
push:
branches:
- main
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'pnpm'

- name: install
run: pnpm i

- name: lint
run: pnpm lint

- name: typecheck
run: pnpm typecheck

# - name: test
# run: pnpm test:ci

# - name: upload coverage reports to Codecov
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# files: ./coverage/clover.xml
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
},
"scripts": {
"build": "pnpm turbo build",
"lint": "pnpm turbo lint",
"typecheck": "pnpm turbo build",
"bump": "bumpp -r"
},
"devDependencies": {
Expand Down
4 changes: 3 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**"]
}
},
"lint": {},
"typecheck": {}
}
}

0 comments on commit 9ba5701

Please sign in to comment.