Skip to content

Commit

Permalink
chore(test): add github action to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dorayx committed Sep 2, 2023
1 parent 33a5921 commit 452c4aa
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Test

on:
workflow_dispatch:
push:
branches:
- main
- next
- dev

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: yarn install
- run: yarn test
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ and so I've created this repo as a starting point for my future projects.
- Convention: Unit tests for individual functions are placed alongside their respective implementations ([In-source testing](https://vitest.dev/guide/in-source.html))
- Convention: The file `tests/setup.ts` is executed before each test file
- Convention: The `tests/tsconfig.json` file configures TypeScript for testing
- GitHub Action: `.github/workflows/test.yml`

**Linters**

Expand Down

0 comments on commit 452c4aa

Please sign in to comment.