-
-
Notifications
You must be signed in to change notification settings - Fork 106
66 lines (54 loc) · 1.48 KB
/
container-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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Run all the container tests and publish to github pages
name: ContainerTests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install required tools
run: sudo apt install -y aha
- name: Checkout code
uses: actions/checkout@v2
- name: Check docker is installed
run: docker ps -a
- name: Run all container tests
run: |
cd tests
./run-all.sh
env:
DEEPCE_DANGEROUS_TESTS: 1
- name: Showing all logs
run: |
ls -lah tests/results
tail -n +1 tests/results/*.log
- name: Upload all logs
uses: actions/upload-artifact@v2
with:
name: logs
path: tests/results/
- name: Copy test results
run: cp -r tests/results /tmp/results
- name: Switch to gh-pages
uses: actions/checkout@v2
with:
ref: 'gh-pages'
clean: true
# Checkout gh-pages branch
- name: Copy test results into branch
run: |
ls -lah /tmp/results
rm -rf results
cp -r /tmp/results results
ls -lah ./results
# Checkout gh-pages branch
- name: Push Changes
run: |
git add results/
git config --global user.name 'stealthcopter-ci'
git config --global user.email '[email protected]'
git commit -am "Automated update from CI"
git push origin gh-pages