Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore : unit tests workflow #32

Merged
merged 3 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading