Skip to content

Commit

Permalink
Adding GH Action CI checks on PRs to Release branches (kudobuilder#435)
Browse files Browse the repository at this point in the history
* Adding GH Action CI checks on PRs to Release branches

Signed-off-by: Ken Sipe <kensipe@gmail.com>
  • Loading branch information
kensipe authored Nov 28, 2022
1 parent 6f1ad38 commit 1d8c7c5
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 60 deletions.
32 changes: 0 additions & 32 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@
# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2.1
jobs:
integration-test:
machine: true
steps:
- checkout
- run: echo 'export INTEGRATION_OUTPUT_JUNIT="true"' >> $BASH_ENV
- run: ./test/run_tests.sh integration-test
- store_test_results:
path: reports/

e2e-test:
machine: true
steps:
Expand All @@ -23,31 +14,8 @@ jobs:
- store_artifacts:
path: kind-logs.tar.bz2

lint:
docker:
- image: kudobuilder/golang:1.18
working_directory: /go/src/github.com/kudobuilder/kuttl
steps:
- checkout
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- run: make lint
- run: ./hack/verify-generate.sh
- run: ./hack/verify-go-clean.sh
- save_cache:
key: go-mod-v1-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
- "/go/bin"
workflows:
version: 2
lint:
jobs:
- lint
integration-test:
jobs:
- integration-test
e2e-test:
jobs:
- e2e-test
22 changes: 0 additions & 22 deletions .github/workflows/e2e.yml

This file was deleted.

8 changes: 6 additions & 2 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ name: "Integration tests"

on:
push:
branches: [ main ]
branches:
- main
- releases/*
pull_request:
branches: [ main ]
branches:
- main
- releases/*

jobs:
integration-tests:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ name: "Lint code"

on:
push:
branches: [ main ]
branches:
- main
- releases/*
pull_request:
branches: [ main ]
branches:
- main
- releases/*

jobs:
lint:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ name: "Unit tests"

on:
push:
branches: [ main ]
branches:
- main
- releases/*
pull_request:
branches: [ main ]
branches:
- main
- releases/*

jobs:
unit-tests:
Expand Down

0 comments on commit 1d8c7c5

Please sign in to comment.