Skip to content

Commit

Permalink
Merge pull request #1 from joshuajaco/add-github-workflow
Browse files Browse the repository at this point in the history
Add github workflow
  • Loading branch information
joshuajaco committed Jul 5, 2022
2 parents 0fe744d + 320f434 commit 656b823
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["**"]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18.4.0]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm run typecheck
- run: npm run format:check
- run: npm test
- run: npm run coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"format": "prettier -w --ignore-path=.gitignore .",
"format:check": "prettier -c --ignore-path=.gitignore .",
"test": "nyc node -r jiti/register test.ts",
"coverage": "mkdir -p coverage && touch coverage/lcov.info && nyc report --reporter=text-lcov > coverage/lcov.info",
"build": "rimraf dist && tsc -p tsconfig.build.json",
"prepublishOnly": "npm run build"
},
Expand Down

0 comments on commit 656b823

Please sign in to comment.