diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml new file mode 100644 index 00000000000..1e216c12574 --- /dev/null +++ b/.github/workflows/integration.yml @@ -0,0 +1,16 @@ +name: integration +on: + pull_request: {} + +jobs: + integration: + name: integration + runs-on: ubuntu-18.04 + steps: + - uses: actions/setup-go@v2 + with: + go-version: 1.15 + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - run: make test-e2e-integration diff --git a/.github/workflows/test-ansible.yml b/.github/workflows/test-ansible.yml new file mode 100644 index 00000000000..0eb41f7af64 --- /dev/null +++ b/.github/workflows/test-ansible.yml @@ -0,0 +1,37 @@ +name: ansible +on: + pull_request: {} + +jobs: + e2e: + name: e2e + runs-on: ubuntu-18.04 + steps: + - uses: actions/setup-go@v2 + with: + go-version: 1.15 + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - run: sudo rm -rf /usr/local/bin/kustomize + - run: make test-e2e-ansible + + e2e-molecule: + name: e2e-molecule + runs-on: ubuntu-18.04 + steps: + - uses: actions/setup-go@v2 + with: + go-version: 1.15 + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - run: sudo rm -rf /usr/local/bin/kustomize + - run: | + env + export PATH=/opt/python/3.6.7/bin:${PATH} + sudo apt-get install python3 python3-pip + sudo pip3 install wheel + sudo pip3 install --upgrade setuptools pip + sudo pip3 install ansible~=2.9.13 + make test-e2e-ansible-molecule diff --git a/.github/workflows/test-go.yml b/.github/workflows/test-go.yml new file mode 100644 index 00000000000..9423fa0579f --- /dev/null +++ b/.github/workflows/test-go.yml @@ -0,0 +1,32 @@ +name: go +on: + pull_request: {} + +jobs: + e2e: + name: e2e + runs-on: ubuntu-18.04 + steps: + - uses: actions/setup-go@v2 + with: + go-version: 1.15 + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - run: sudo rm -rf /usr/local/bin/kustomize + - run: make test-e2e-go + + unit: + name: unit + runs-on: ubuntu-18.04 + steps: + - uses: actions/setup-go@v2 + with: + go-version: 1.15 + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - run: make test-unit + - uses: shogo82148/actions-goveralls@v1 + with: + path-to-profile: coverage.out diff --git a/.github/workflows/test-helm.yml b/.github/workflows/test-helm.yml new file mode 100644 index 00000000000..0809e4d511d --- /dev/null +++ b/.github/workflows/test-helm.yml @@ -0,0 +1,17 @@ +name: helm +on: + pull_request: {} + +jobs: + e2e: + name: e2e + runs-on: ubuntu-18.04 + steps: + - uses: actions/setup-go@v2 + with: + go-version: 1.15 + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - run: sudo rm -rf /usr/local/bin/kustomize + - run: make test-e2e-helm diff --git a/.github/workflows/test-sanity.yml b/.github/workflows/test-sanity.yml new file mode 100644 index 00000000000..bb194f97468 --- /dev/null +++ b/.github/workflows/test-sanity.yml @@ -0,0 +1,28 @@ +name: sanity +on: + pull_request: {} + +jobs: + sanity: + name: sanity + runs-on: ubuntu-18.04 + steps: + - uses: actions/setup-go@v2 + with: + go-version: 1.15 + id: go + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - run: sudo rm -rf /usr/local/bin/kustomize + - run: make test-sanity + + links: + name: doc links + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + submodules: recursive + - run: make test-links diff --git a/hack/tests/e2e-ansible-molecule.sh b/hack/tests/e2e-ansible-molecule.sh index a2449fe734e..a4dbbda3e2c 100755 --- a/hack/tests/e2e-ansible-molecule.sh +++ b/hack/tests/e2e-ansible-molecule.sh @@ -10,6 +10,7 @@ header_text "Running tests to check ansible molecule" ROOTDIR="$(pwd)" TMPDIR="$(mktemp -d)" trap_add 'rm -rf $TMPDIR' EXIT +export PATH=${HOME}/.local/bin:${PATH} pip3 install --user pyasn1==0.4.7 pyasn1-modules==0.2.6 idna==2.8 ipaddress==1.0.22 pip3 install --user molecule==3.0.2 pip3 install --user ansible-lint yamllint