Skip to content

Merge pull request #162 from dockstore/feature/seab-5604 #926

Merge pull request #162 from dockstore/feature/seab-5604

Merge pull request #162 from dockstore/feature/seab-5604 #926

Workflow file for this run

# 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