APPS-2628 Fill in license file template (#131) #587
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: Unit Test Workflow | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: | |
- main | |
- develop | |
workflow_dispatch: | |
permissions: | |
contents: read | |
packages: read | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v2 | |
- name: Install Java | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Install dxpy and other dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y apt-transport-https wget git openssh-server tree python3 python3-pip python3-venv | |
pip3 install --upgrade pip | |
pip3 install setuptools wheel | |
pip3 install termcolor | |
pip3 install dxpy | |
pip3 install --upgrade pyOpenSSL | |
- name: Common Unit Tests | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
sbt 'project common' scalafmtCheckAll | |
sbt 'project common' test | |
sbt 'project common' publishLocal | |
- name: API Unit Tests | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
AUTH_TOKEN: ${{ secrets.DX_STAGING_TOKEN }} | |
run: | | |
export PATH="$PATH:$HOME/.local/bin" | |
# set up DNAnexus staging environment | |
dx login --noprojects --staging --token $AUTH_TOKEN | |
PROJECT=dxCompiler_playground | |
dx select $PROJECT | |
sbt 'project api' scalafmtCheckAll | |
sbt 'project api' test | |
sbt 'project api' publishLocal | |
- name: Protocols Unit Tests | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
sbt 'project protocols' scalafmtCheckAll | |
sbt 'project protocols' test | |
- name: Yaml Unit Tests | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
sbt 'project yaml' scalafmtCheckAll | |
sbt 'project yaml' test |