Merge pull request #165 from dockstore/feature/seab-6403/remove-inven… #965
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 workflow will build a Java project with Maven | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
name: Node.js CI with SAM | |
on: [push, pull_request] | |
jobs: | |
linterWithESLint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 12.x | |
- run: npm install | |
- run: npm run lint | |
testWithSAMCLI: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install aws-sam-cli | |
- name: Test wdl parsing with SAM CLI build and invoke | |
working-directory: ./wdl-parsing | |
run: | | |
sam build --use-container | |
sam local invoke WDLParsingFunction -e events/event.json &> output.txt | |
grep "statusCode\": 200" output.txt | |
- name: Test Nextflow parsing with SAM CLI build (no invoke) | |
working-directory: ./nextflow-parsing | |
# SAM build also runs the Java tests | |
run: | | |
sam build --use-container | |
- name: Build CWL packing with SAM CLI build (no invoke, no test) | |
working-directory: ./cwlpack | |
run: sam build --use-container | |
- name: Test CWL packing with pytest | |
working-directory: ./cwlpack | |
run: | | |
pip install -r tests/requirements.txt --user | |
pip install -r cwl_pack_function/requirements.txt --user | |
python -m pytest tests/unit -v | |
pylint cwl_pack_function | |
pylint tests | |