-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1863 from kbase/DATAUP-233-wdio-travis
DATAUP-280 Migrate tests to github actions
- Loading branch information
Showing
16 changed files
with
4,085 additions
and
814 deletions.
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,60 @@ | ||
name: CI-testing | ||
|
||
on: | ||
[push, pull_request] | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
miniconda-version: 'latest' | ||
activate-environment: test-environment | ||
python-version: 3.6.10 | ||
auto-activate-base: false | ||
auto-update-conda: true | ||
condarc-file: test/condarc.yml | ||
|
||
- name: Use Node JS 10.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 10.x | ||
|
||
- name: Install JS dependencies | ||
run: | | ||
npm ci | ||
npm install bower | ||
./node_modules/bower/bin/bower install | ||
- name: Install Narrative Application | ||
shell: bash -l {0} | ||
run: | | ||
bash ./scripts/install_narrative.sh | ||
grunt minify | ||
sed <src/config.json.templ >src/config.json "s/{{ .Env.CONFIG_ENV }}/dev/" | ||
sed -i 's/{{ if ne .Env.CONFIG_ENV "prod" }} true {{- else }} false {{- end }}/true/' src/config.json | ||
jupyter notebook --version | ||
- name: Run Narrative Backend Tests | ||
shell: bash -l {0} | ||
run: make test-backend | ||
|
||
- name: Run Narrative Frontend Unit Tests | ||
shell: bash -l {0} | ||
run: make test-frontend-unit | ||
|
||
- name: Run Narrative Frontend Integration Tests | ||
shell: bash -l {0} | ||
env: | ||
KBASE_TEST_TOKEN: ${{ secrets.NARRATIVE_TEST_TOKEN }} | ||
run: make test-integration | ||
|
||
- name: Send to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
file: | | ||
./coverage.xml | ||
./js-coverage/lcov/lcov.info | ||
fail_ci_if_error: true |
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
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
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
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
Oops, something went wrong.