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

tests: add minimal unit test system #6

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
43 changes: 43 additions & 0 deletions .github/workflows/client_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Client Test Suite

# This workflow contains all tests for the openqda core-client
# which includes for now:
# - check code-format using code-formatter
# - check code-style using linter
#
# In the future we also want to have:
# - style lint
# - unit-tests
# - vue component tests
# - e2e tests

on:
push:
branches:
- main
pull_request:

jobs:
unit:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node20-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node20-

- name: install node modules
run: |
npm i
- name: run unit tests
run: |
npm run ci:unit
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,8 @@ then navigate to http://localhost:5173/ in your browser.
* [quill editor v2 documenation](https://quilljs.com/docs/quickstart)
* [vue 3](https://vuejs.org/api/) (particularly [composition API](https://vuejs.org/guide/introduction.html#api-styles) )

## Run tests

```shell
npm run test:unit
```
Loading