mirror of
https://github.com/chaifeng/ufw-docker.git
synced 2025-05-10 05:28:31 +02:00
Add Github Actions to run unit tests
This commit is contained in:
parent
cc58088bc5
commit
0150af87dc
1 changed files with 16 additions and 0 deletions
16
.github/workflows/testing.yml
vendored
Normal file
16
.github/workflows/testing.yml
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
name: Unit Testing ufw-docker
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
test:
|
||||
name: Unit Testing
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Checkout submodules
|
||||
shell: bash
|
||||
run: |
|
||||
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
|
||||
git submodule sync --recursive
|
||||
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
|
||||
- name: Test ufw-docker
|
||||
run: ./test.sh
|
Loading…
Add table
Reference in a new issue