Skip to content

Commit

Permalink
Merge pull request #32 from hirasso/chore/unit-tests-workflow
Browse files Browse the repository at this point in the history
chore : unit tests workflow
  • Loading branch information
hirasso authored Oct 22, 2024
2 parents c99e890 + 2c103b7 commit 61b9e97
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Make sure the PR fulfills as many of the following requirements as possible
-->

- [ ] The PR is submitted to the `main` branch
- [ ] The code was formatted before pushing (`npm run format`)
- [ ] All tests are passing (`npm run test`)
- [ ] The code was formatted before pushing (`pnpm run format`)
- [ ] All tests are passing (`pnpm run test`)
- [ ] New or updated tests are included
- [ ] The documentation was updated as required

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ on:
workflow_dispatch:

jobs:
test:
e2e-tests:
name: Run e2e tests
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Unit tests

on:
push:
branches: [main, next]
pull_request:
workflow_dispatch:

jobs:
unit-tests:
name: Run unit tests
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Check out repo
uses: actions/checkout@v3

- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 20

- name: Setup pnpm
uses: pnpm/action-setup@v3 # @see https://stackoverflow.com/a/74885077/586823

- name: Install dependencies
run: pnpm i

- name: Build
run: pnpm run build

- name: Run tests
run: pnpm run test:unit

0 comments on commit 61b9e97

Please sign in to comment.