-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (35 loc) · 1.16 KB
/
build_and_test_ubuntu.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
name: Ubuntu build and test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
# Manually enable/disable this long test
# Write an if statement that is always true/false
if: true
steps:
- uses: actions/checkout@v3
- name: Update apt-get
run: sudo apt-get update
- name: Install gfortran
run: sudo apt-get install gfortran
- name: Install ghostscript
run: sudo apt-get install ghostscript
- name: Install shellcheck
run: sudo apt-get install shellcheck
- name: make VaST
run: make
- name: Syntax-check the test script
run: bash -n util/examples/test_vast.sh
- name: Syntax-check the NMW transient search script
run: bash -n util/transients/transient_factory_test31.sh
- name: Check commit message
run: |
commit_message=$(git log --format=%B -n 1)
if [[ "${commit_message}" == *"notest"* ]]; then
echo "Commit contains 'notest'. Skipping tests."
exit 0
fi
- name: Prepare for the test
run: echo "1" > ../THIS_IS_HPCC
- name: Test VaST
run: util/examples/test_vast.sh