Aded support for oauth and mtls. #206
Workflow file for this run
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
name: "tests" | |
on: | |
# Trigger the workflow on push or pull request, | |
# but only for the main branch | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
Unit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Node14 and Test | |
run: | | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" | |
nvm --version | |
nvm install 14 | |
node --version | |
yarn install | |
nvm alias default 14 | |
node --version | |
yarn test:unit | |
- name: Collect coverage | |
run: ./node_modules/codecov/bin/codecov | |
E2E: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup E2E | |
run: yarn run test:e2e:setup:background | |
- name: Validate | |
run: docker ps | |
- name: Sleep for 60 seconds | |
uses: kibertoad/[email protected] | |
with: | |
time: "60s" | |
- name: Install Node14 and Test | |
run: | | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" | |
nvm --version | |
nvm install 14 | |
node --version | |
yarn install | |
nvm alias default 14 | |
node --version | |
yarn test:e2e |