mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-09-30 17:30:51 +02:00
Collapse integration test workflows into one config (#1855)
* Collapse integration test workflows into one config Remove last traces of Travis, including env vars and `make travis-setup` and badges in README * fix lint * make integration tests pass on PRs
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
name: Integration tests (K8s)
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: ['master']
|
||||
|
||||
concurrency:
|
||||
group: int-test-k8s-${{ github.head_ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
env:
|
||||
IMAGE_REPO: 'localhost:5000'
|
||||
REGISTRY: 'localhost:5000'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.17
|
||||
- uses: actions/checkout@v2
|
||||
- uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Run build-image-and-k8s-integration-test
|
||||
run: |
|
||||
make travis-setup
|
||||
make minikube-setup
|
||||
make k8s-executor-build-push
|
||||
make integration-test-k8s
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Integration tests (Layers)
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: ['master']
|
||||
|
||||
concurrency:
|
||||
group: int-test-layers-${{ github.head_ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
env:
|
||||
IMAGE_REPO: 'localhost:5000'
|
||||
REGISTRY: 'localhost:5000'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.17
|
||||
- uses: actions/checkout@v2
|
||||
- uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Run integration-test-layers
|
||||
run: |
|
||||
make travis-setup
|
||||
make minikube-setup
|
||||
make integration-test-layers
|
||||
@@ -1,37 +0,0 @@
|
||||
name: Integration Tests Misc
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: ['master']
|
||||
|
||||
concurrency:
|
||||
group: int-test-mis-${{ github.head_ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
env:
|
||||
IMAGE_REPO: 'localhost:5000'
|
||||
REGISTRY: 'localhost:5000'
|
||||
TRAVIS_REPO_SLUG: ${{ github.repository }}
|
||||
TRAVIS_BRANCH: ${{ github.head_ref }}
|
||||
TRAVIS_PULL_REQUEST: ${{ github.event.number }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.17
|
||||
- uses: actions/checkout@v2
|
||||
- uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Print Travis ENV vars
|
||||
run: |
|
||||
echo "TRAVIS_BRANCH: ${TRAVIS_BRANCH}"
|
||||
echo "TRAVIS_PULL_REQUEST: ${TRAVIS_PULL_REQUEST}"
|
||||
echo "TRAVIS_REPO_SLUG: ${TRAVIS_REPO_SLUG}"
|
||||
|
||||
- name: Run integration-test-misc
|
||||
run : |
|
||||
make travis-setup
|
||||
make minikube-setup
|
||||
make integration-test-misc
|
||||
@@ -1,28 +0,0 @@
|
||||
name: Integration tests (Run)
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: ['master']
|
||||
|
||||
concurrency:
|
||||
group: int-test-run-${{ github.head_ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
env:
|
||||
IMAGE_REPO: 'localhost:5000'
|
||||
REGISTRY: 'localhost:5000'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.17
|
||||
- uses: actions/checkout@v2
|
||||
- uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Run integration-test-run
|
||||
run: |
|
||||
make travis-setup
|
||||
make minikube-setup
|
||||
make integration-test-run
|
||||
@@ -0,0 +1,36 @@
|
||||
name: Integration tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ['master']
|
||||
pull_request:
|
||||
branches: ['master']
|
||||
|
||||
concurrency:
|
||||
group: integration-test-${{ github.head_ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
IMAGE_REPO: 'localhost:5000'
|
||||
REGISTRY: 'localhost:5000'
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
make-target:
|
||||
- integration-test-layers
|
||||
- integration-test-misc
|
||||
- integration-test-run
|
||||
- k8s-executor-build-push integration-test-k8s
|
||||
|
||||
steps:
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.17
|
||||
- uses: actions/checkout@v2
|
||||
- uses: docker/setup-buildx-action@v1
|
||||
|
||||
- run: make install-container-diff minikube-setup
|
||||
- run: make ${{ matrix.make-target }}
|
||||
@@ -1,6 +1,8 @@
|
||||
name: Unit tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ['master']
|
||||
pull_request:
|
||||
branches: ['master']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user