mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-18 13:12:48 +02:00
chore: add workflows for pr tests (#1766)
* chore: add workflows for pr tests * fix unit tests * fix formatting * chore: fix gobuild * change minikube script * chore: fix lint install script * chore: ignore and fix tests * fix lint and run gofmt * lint fixes * k8s executor image only * fix Makefile * fix travis env variables * more info on k8s tests * fix travis run * fix * fix * fix * fix log * some more changes * increase timeout * delete travis.yml and fix multiple copy tests * fix registry mirror * fix lint * add concurency * last attemot to fix k8 integrations * diff id for diff workflows
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
name: Integration Tests Misc
|
||||
|
||||
# Triggers the workflow on push or pull request events
|
||||
on: [push, pull_request]
|
||||
|
||||
concurrency:
|
||||
group: int-test-mis-${{ github.head_ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build-executor:
|
||||
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:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.14
|
||||
id: go
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- 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 integration-test-misc
|
||||
@@ -0,0 +1,30 @@
|
||||
name: Integration tests (Run)
|
||||
|
||||
# Triggers the workflow on push or pull request events
|
||||
on: [push, pull_request]
|
||||
|
||||
concurrency:
|
||||
group: int-test-run-${{ github.head_ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build-executor:
|
||||
env:
|
||||
IMAGE_REPO: 'localhost:5000'
|
||||
REGISTRY: 'localhost:5000'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.14
|
||||
id: go
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Run integration-test-run
|
||||
run: |
|
||||
make travis-setup
|
||||
make integration-test-run
|
||||
@@ -0,0 +1,33 @@
|
||||
name: Intergration tests (K8s)
|
||||
|
||||
# Triggers the workflow on push or pull request events
|
||||
on: [push, pull_request]
|
||||
|
||||
concurrency:
|
||||
group: int-test-k8s${{ github.head_ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build-executor:
|
||||
env:
|
||||
IMAGE_REPO: 'localhost:5000'
|
||||
REGISTRY: 'localhost:5000'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.14
|
||||
id: go
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Run build-image-and-k8s-integration-test
|
||||
run: |
|
||||
make travis-setup
|
||||
make minikube-setup
|
||||
make k8s-executor-build-push
|
||||
make integration-test-k8s
|
||||
@@ -0,0 +1,31 @@
|
||||
name: Integration tests (Layers)
|
||||
|
||||
# Triggers the workflow on push or pull request events
|
||||
on: [push, pull_request]
|
||||
|
||||
concurrency:
|
||||
group: int-test-layers-${{ github.head_ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build-executor:
|
||||
env:
|
||||
IMAGE_REPO: 'localhost:5000'
|
||||
REGISTRY: 'localhost:5000'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.14
|
||||
id: go
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Run integration-test-layers
|
||||
run: |
|
||||
make travis-setup
|
||||
make integration-test-layers
|
||||
@@ -4,6 +4,9 @@ on:
|
||||
push:
|
||||
tags:
|
||||
- 'v[0-9]+.[0-9]+.[0-9]+*'
|
||||
concurrency:
|
||||
group: ${{ github.head_ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build-executor:
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
name: Unit tests
|
||||
|
||||
# Triggers the workflow on push or pull request events
|
||||
on: [push, pull_request]
|
||||
|
||||
concurrency:
|
||||
group: unit-tests-${{ github.head_ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build-executor:
|
||||
env:
|
||||
IMAGE_REPO: 'localhost:5000'
|
||||
REGISTRY: 'localhost:5000'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.14
|
||||
id: go
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Run unit-test
|
||||
run:
|
||||
make test
|
||||
Reference in New Issue
Block a user