Skip to content

Update README.md

Update README.md #96

Workflow file for this run

# 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 'stealthcopter@users.noreply.github.com'
git commit -am "Automated update from CI"
git push origin gh-pages