-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (54 loc) · 1.92 KB
/
maven.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# 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 with SAM CLI
working-directory: ./upsertGitHubTag
run: |
sam local invoke HelloWorldFunction -e events/event.json -n env.json &> output.txt
grep "Valid push event" output.txt
- 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