-
Notifications
You must be signed in to change notification settings - Fork 41
31 lines (26 loc) · 1017 Bytes
/
dockerhub.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
name: dockerhub image
on:
schedule:
- cron: '15 21 * * *' # 9:15pm everyday
workflow_dispatch:
repository_dispatch:
types: [docker-test, install-test]
jobs:
test_dockerhub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test docker
run: docker run hello-world
- name: Software and DB version
run: docker run ncbi/amr amrfinder --database_version
- name: image ls for debugging
run: docker image ls
- name: Protein
run: docker run --rm -v ${PWD}:/data ncbi/amr amrfinder --plus -n test_dna.fa -O Escherichia --mutation_all test_dna_mut_all.got --print_node > test_dna.got
- name: Check results
run: diff test_dna.expected test_dna.got
- name: Combined
run: docker run --rm -v ${PWD}:/data ncbi/amr amrfinder --plus -n test_dna.fa -p test_prot.fa -g test_prot.gff -O Escherichia --print_node > test_both.got
- name: Check combined results
run: diff test_both.expected test_both.got