-
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (53 loc) · 1.36 KB
/
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
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
57
58
59
60
61
62
name: 'Test setup-precice-action'
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
precice-version: ['develop', 'main', 'v2.5.0']
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: debug
run: |
echo $GITHUB_WORKSPACE
ls -la
echo $PWD
- name: Set up preCICE
uses: ./
with:
precice-version: ${{ matrix.precice-version }}
build-tests: 'ON'
- name: Check release version
id: check-release
run: |
if [[ ${{ matrix.precice-version }} =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "release=true" >> $GITHUB_OUTPUT
echo "release=true"
else
echo "release=false" >> $GITHUB_OUTPUT
echo "release=false"
fi
- name: debug
run: |
echo ${{ steps.check-release.outputs.release }}
echo $GITHUB_WORKSPACE
ls -la
echo $PWD
echo $LD_LIBRARY_PATH
- name: Run tests if not release tag
if: steps.check-release.outputs.release == 'false'
working-directory: precice/build
run: |
ctest
make test_install