commit
c6b95ea6f9
|
@ -1,10 +1,12 @@
|
|||
name: MasterCI
|
||||
name: Master
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '**.go'
|
||||
- "**.go"
|
||||
- "**.yml"
|
||||
- "Makefile"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
jobs:
|
||||
|
@ -15,9 +17,9 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Download Dependencies
|
||||
run : go mod download
|
||||
run: go mod download
|
||||
- name: Build Binaries
|
||||
run : |
|
||||
run: |
|
||||
make minikube-linux-amd64
|
||||
make e2e-linux-amd64
|
||||
cp -r test/integration/testdata ./out
|
||||
|
@ -38,31 +40,30 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install libvirt
|
||||
run : |
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libvirt-dev
|
||||
- name: Download Dependencies
|
||||
run : go mod download
|
||||
run: go mod download
|
||||
- name: Lint
|
||||
env:
|
||||
TESTSUITE: lintall
|
||||
run : make test
|
||||
run: make test
|
||||
continue-on-error: false
|
||||
unit_test:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install libvirt
|
||||
run : |
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libvirt-dev
|
||||
- name: Download Dependencies
|
||||
run : go mod download
|
||||
run: go mod download
|
||||
- name: Unit Test
|
||||
env:
|
||||
TESTSUITE: unittest
|
||||
run :
|
||||
make test
|
||||
run: make test
|
||||
continue-on-error: false
|
||||
# Run the following integration tests after the build_minikube
|
||||
# They will run in parallel and use the binaries in previous step
|
||||
|
@ -515,7 +516,14 @@ jobs:
|
|||
# collect all the reports and upload them
|
||||
upload_all_reports:
|
||||
if: always()
|
||||
needs: [functional_test_docker_ubuntu, addons_certs_tests_docker_ubuntu, multinode_pause_tests_docker_ubuntu, preload_docker_flags_tests_docker_ubuntu, functional_baremetal_ubuntu18_04]
|
||||
needs:
|
||||
[
|
||||
functional_test_docker_ubuntu,
|
||||
addons_certs_tests_docker_ubuntu,
|
||||
multinode_pause_tests_docker_ubuntu,
|
||||
preload_docker_flags_tests_docker_ubuntu,
|
||||
functional_baremetal_ubuntu18_04,
|
||||
]
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: download all reports
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
name: CI
|
||||
name: PR
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- '**.go'
|
||||
- "**.go"
|
||||
- "**.yml"
|
||||
- "Makefile"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
jobs:
|
||||
|
@ -13,9 +15,9 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Download Dependencies
|
||||
run : go mod download
|
||||
run: go mod download
|
||||
- name: Build Binaries
|
||||
run : |
|
||||
run: |
|
||||
make minikube-linux-amd64
|
||||
make e2e-linux-amd64
|
||||
cp -r test/integration/testdata ./out
|
||||
|
@ -36,31 +38,30 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install libvirt
|
||||
run : |
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libvirt-dev
|
||||
- name: Download Dependencies
|
||||
run : go mod download
|
||||
run: go mod download
|
||||
- name: Lint
|
||||
env:
|
||||
TESTSUITE: lintall
|
||||
run : make test
|
||||
run: make test
|
||||
continue-on-error: false
|
||||
unit_test:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install libvirt
|
||||
run : |
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libvirt-dev
|
||||
- name: Download Dependencies
|
||||
run : go mod download
|
||||
run: go mod download
|
||||
- name: Unit Test
|
||||
env:
|
||||
TESTSUITE: unittest
|
||||
run :
|
||||
make test
|
||||
run: make test
|
||||
continue-on-error: false
|
||||
# Run the following integration tests after the build_minikube
|
||||
# They will run in parallel and use the binaries in previous step
|
||||
|
@ -513,7 +514,14 @@ jobs:
|
|||
# collect all the reports and upload them
|
||||
upload_all_reports:
|
||||
if: always()
|
||||
needs: [functional_test_docker_ubuntu, addons_certs_tests_docker_ubuntu, multinode_pause_tests_docker_ubuntu, preload_docker_flags_tests_docker_ubuntu, functional_baremetal_ubuntu18_04]
|
||||
needs:
|
||||
[
|
||||
functional_test_docker_ubuntu,
|
||||
addons_certs_tests_docker_ubuntu,
|
||||
multinode_pause_tests_docker_ubuntu,
|
||||
preload_docker_flags_tests_docker_ubuntu,
|
||||
functional_baremetal_ubuntu18_04,
|
||||
]
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: download all reports
|
||||
|
|
Loading…
Reference in New Issue