Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix unit-test and integration-test github actions #47

Merged
merged 2 commits into from
Aug 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

Expand Down
19 changes: 1 addition & 18 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,14 @@ on:
branches:
- master
pull_request:
types: [unlabeled, opened, synchronize, reopened]
branches:
- master

jobs:
labeler:
if: | # Add/Re-Add testing-disabled anytime there's a commit or PR is opened
github.event.action == 'opened' ||
github.event.action == 'synchronize' ||
github.event.action == 'reopened'
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
integration-test:
name: integration-test
runs-on: self-hosted
env:
CLUSTER_NAME: vpc-rc-ci-test
K8S_VERSION: 1.19
if: | # Run test only when testing-disabled removed or it's push to a branch
github.event_name == 'push' ||
(github.event.action == 'unlabeled' && !contains(github.event.pull_request.labels.*.name, 'test-disabled'))
steps:
- name: clean work dir from previous runs
run: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

Expand All @@ -20,7 +19,7 @@ jobs:
run: |
arch=$(go env GOARCH)
os=$(go env GOOS)
curl -L https://go.kubebuilder.io/dl/2.3.1/${os}/${arch} | tar -xz -C /tmp/
curl -L https://github.com/kubernetes-sigs/kubebuilder/releases/download/v2.3.1/kubebuilder_2.3.1_${os}_${arch}.tar.gz | tar -xz -C /tmp/
sudo mv /tmp/kubebuilder_2.3.1_${os}_${arch} /usr/local/kubebuilder
export PATH=$PATH:/usr/local/kubebuilder/bin
- name: Checkout Repository
Expand Down