Skip to content

Commit

Permalink
Add GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
richardTowers committed Sep 13, 2024
1 parent 22cab7c commit 4281bbe
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: main
on:
- pull_request
- push
jobs:
main:
name: ${{matrix.node}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{matrix.node}}
- run: npm install
- run: npm test
strategy:
matrix:
node:
- lts/iron
- node
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

## TODO

- github actions
- test coverage
- more tests?
- typescript coverage
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"scripts": {
"build": "micromark-build",
"format": "prettier . -w --log-level warn && xo --fix",
"test": "node --test"
"test-dev": "node --conditions development --test",
"test-prod": "node --conditions production --test",
"test": "npm run test-dev && npm run test-prod"
},
"prettier": {
"bracketSpacing": false,
Expand Down

0 comments on commit 4281bbe

Please sign in to comment.