Skip to content

Commit

Permalink
ci: add test workflow (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 authored Oct 25, 2024
1 parent cbb8649 commit e86491c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test

on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag: v4.2.2
- name: Setup Node.js
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # tag: v4.0.4
with:
node-version: 20.x
- name: Test
run: |
yarn --frozen-lockfile
yarn build
yarn prettier:check
yarn test
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"start": "node dist/index.js",
"prepare": "husky install",
"prettier:check": "prettier --check \"src/**/*.ts\"",
"prettier:write": "prettier --write \"src/**/*.ts\""
"prettier:write": "prettier --write \"src/**/*.ts\"",
"test": "jest"
},
"devDependencies": {
"@babel/core": "^7.14.6",
Expand Down

0 comments on commit e86491c

Please sign in to comment.