-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 945 Bytes
/
nodejs.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
name: CI
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup env
run: |
echo 'BLAST_VERSION<<EOF' >> $GITHUB_ENV
cat ./BLAST_VERSION >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Cache blast
id: cache-blast
uses: actions/cache@v2
with:
path: ~/blast
key: ${{ env.BLAST_VERSION }}
- name: Download Blast+
if: steps.cache-blast.outputs.cache-hit != 'true'
run: |
mkdir ~/blast
wget -qO- "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/${{ env.BLAST_VERSION }}/ncbi-blast-${{ env.BLAST_VERSION }}+-x64-linux.tar.gz" | tar xvz -C ~/blast
- name: Install dependencies
run: npm ci
- name: Run tests
run: |
export BLAST_DIRECTORY_PATH="${HOME}/blast/ncbi-blast-${BLAST_VERSION}+/bin"
npm run test