-
Notifications
You must be signed in to change notification settings - Fork 28
31 lines (29 loc) · 962 Bytes
/
test.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: linux
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
SETUP: ['/cvmfs/sw.hsf.org/key4hep/setup.sh', '/cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh']
steps:
- uses: actions/checkout@v2
- uses: cvmfs-contrib/github-action-cvmfs@v2
- name: Start container
run: |
docker run -it --name CI_container -v ${GITHUB_WORKSPACE}:/Package -v /cvmfs:/cvmfs:shared -d ghcr.io/aidasoft/centos7:latest /bin/bash
- name: RunTests
run: |
docker exec CI_container /bin/bash -c \
'curl -LO https://github.com/jgm/pandoc/releases/download/2.18/pandoc-2.18-linux-amd64.tar.gz;\
tar -xzf pandoc-2.18-linux-amd64.tar.gz;\
cp pandoc-2.18/bin/pandoc /usr/local/bin/;\
cd ./Package;\
source ${{ matrix.SETUP }};\
mkdir build;\
cd build;\
cmake ..;\
make;\
make test;
'