-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add unit-tests workflow; auto run tests with both
jest
+ pytest
* Adds an automated unit-tests workflow with GitHub Actions -- This workflow has 2 tasks that run in parallel. Both start by setting up an environment with `setup.sh`. Then, one runs `run_pytest.sh` and the other runs `run_jest.sh`. * Adds execute permissions to all *.sh files in `bin` Co-authored-by: Jack Greenlee <[email protected]>
- Loading branch information
1 parent
a9fdffd
commit e8ae9dc
Showing
6 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# taken from https://github.com/e-mission/e-mission-server/blob/master/.github/workflows/test-with-manual-install.yml | ||
|
||
name: unit-tests | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
on: | ||
push: | ||
pull_request: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
test-pytest: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Run setup.sh | ||
shell: bash -l {0} | ||
run: | | ||
source bin/setup.sh | ||
- name: Run pytest | ||
shell: bash -l {0} | ||
run: | | ||
source bin/run_pytest.sh | ||
test-jest: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Run setup.sh | ||
shell: bash -l {0} | ||
run: | | ||
source bin/setup.sh | ||
- name: Run jest tests | ||
shell: bash -l {0} | ||
run: | | ||
source bin/run_jest.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.