-
Notifications
You must be signed in to change notification settings - Fork 22
43 lines (41 loc) · 1.49 KB
/
tests.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
---
name: 'Run tests'
on:
push:
pull_request:
# Disabled, because Github appears to disable the whole workflow if you have a schedule
# and no updates for 60 days...
# schedule:
#- cron: '0 7 * * *'
jobs:
tests:
name: Run tests
# on a ubuntu-20.04 VM
runs-on: ubuntu-20.04
defaults:
run:
working-directory: ./demo/
steps:
- uses: actions/[email protected]
with:
fetch-depth: 5
submodules: recursive
- run: ./test-templating.sh
working-directory: ./templating
- run: ./tests/test_versioning.sh
working-directory: .
- run: ./prepare.sh
- run: ./builder/build.sh -B MYCOOLARG=iLikeTests sdist
- run: ./builder/build.sh -B MYCOOLARG=iLikeTests centos-7
# Again, now very fast due to the layer cache
- run: ./builder/build.sh -B MYCOOLARG=iLikeTests centos-7
# Three cache builds:
# - First one will write the vendor cache
- run: ./builder/build.sh -c -B MYCOOLARG=iLikeTests centos-7
# - Second one will use the vendor cache, but the Docker layer cache gets invalidated by the new cache file
- run: ./builder/build.sh -c -B MYCOOLARG=iLikeTests centos-7
# - Third one is very fast due to the Docker layer cache
- run: ./builder/build.sh -c -B MYCOOLARG=iLikeTests centos-7
# Do a reproducible rocky-8 build (does not work for centos-7)
- run: ../tests/test-rocky-8-reproducible.sh
- run: ../tests/test-rocky-9-reproducible.sh