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

Migration from zuul checks to github actions #674

Merged
merged 62 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
650a59e
added github actions
sgmv May 31, 2024
4918962
added github actions
sgmv May 31, 2024
aa0417a
check actions
sgmv May 31, 2024
98b7a0c
fix image
sgmv May 31, 2024
de3c7a1
check func tests
sgmv May 31, 2024
58d8ccf
check func tests
sgmv May 31, 2024
a874ee0
Merge branch 'devel' into github-actions
sgmv Jun 4, 2024
0076fea
change behaviour
sgmv Jun 4, 2024
6a1d792
change behaviour
sgmv Jun 4, 2024
7d20c09
change behaviour
sgmv Jun 4, 2024
c16af24
change behaviour
sgmv Jun 4, 2024
8beb5fc
change behaviour
sgmv Jun 4, 2024
fe0276f
change behaviour
sgmv Jun 4, 2024
bc24832
change behaviour
sgmv Jun 4, 2024
0e82330
change behaviour
sgmv Jun 4, 2024
1a8b36b
add env variables
sgmv Jun 4, 2024
942f26e
add env variables
sgmv Jun 4, 2024
56a9aaa
add env variables
sgmv Jun 4, 2024
361e993
add env variables
sgmv Jun 4, 2024
56670f8
add env variables
sgmv Jun 4, 2024
d0d9885
add env variables
sgmv Jun 4, 2024
790cf46
add env variables
sgmv Jun 4, 2024
bb856a5
add env variables
sgmv Jun 4, 2024
830731a
add env variables
sgmv Jun 4, 2024
c1d1eac
add env variables
sgmv Jun 4, 2024
c14e64f
add env variables
sgmv Jun 4, 2024
2f28f91
add env variables
sgmv Jun 4, 2024
38c65c1
add env variables
sgmv Jun 4, 2024
fb8eb5e
add env variables
sgmv Jun 4, 2024
d3ef13f
add env variables
sgmv Jun 4, 2024
c32768d
add env variables
sgmv Jun 4, 2024
aa62b9a
add env variables
sgmv Jun 4, 2024
df4e8c3
add env variables
sgmv Jun 4, 2024
22019fb
add env variables
sgmv Jun 4, 2024
b61b303
add env variables
sgmv Jun 4, 2024
428ce02
add env variables
sgmv Jun 4, 2024
4b23147
add env variables
sgmv Jun 4, 2024
032b279
add env variables
sgmv Jun 4, 2024
b6263cf
add env variables
sgmv Jun 4, 2024
725460c
add env variables
sgmv Jun 4, 2024
9a2861e
check gate label
sgmv Jun 5, 2024
b61305d
check gate label
sgmv Jun 5, 2024
80fa12e
check gate label
sgmv Jun 5, 2024
6d722ec
check gate label
sgmv Jun 5, 2024
39db5c2
check gate label
sgmv Jun 5, 2024
a3a91fc
check gate label
sgmv Jun 5, 2024
e251bfc
check gate label
sgmv Jun 5, 2024
cb9e621
check gate label
sgmv Jun 5, 2024
9814615
refactoring
sgmv Jun 5, 2024
4b5d97e
refactoring
sgmv Jun 5, 2024
92e9f63
refactoring
sgmv Jun 5, 2024
dca03ae
refactoring
sgmv Jun 5, 2024
3b4c23a
refactoring
sgmv Jun 5, 2024
2fb81ec
refactoring
sgmv Jun 5, 2024
5739062
refactoring
sgmv Jun 5, 2024
c12f4f5
refactoring
sgmv Jun 5, 2024
8e60c3b
refactoring
sgmv Jun 5, 2024
828bb64
refactoring
sgmv Jun 5, 2024
1097d47
refactoring
sgmv Jun 5, 2024
85f8e9e
refactoring
sgmv Jun 5, 2024
609352a
refactoring
sgmv Jun 5, 2024
2e932fd
refactoring
sgmv Jun 5, 2024
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
45 changes: 45 additions & 0 deletions .github/workflows/labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: run tests

on:
pull_request:
types:
- labeled

jobs:
acc_tests:
name: acceptance tests
runs-on: ubuntu-22.04
environment: tests
if: ${{ contains(fromJSON('["post", "gate"]'), github.event.label.name) }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.20"
- run: make acceptance
env:
OS_AUTH_URL: ${{ secrets.AUTH_URL }}
OS_DOMAIN_NAME: ${{ secrets.USER_DOMAIN_NAME }}
OS_PASSWORD: ${{ secrets.PASSWORD }}
OS_USERNAME: ${{ secrets.USERNAME }}
OS_PROJECT_NAME: ${{ vars.FUNCTEST_PROJECT_NAME }}
OS_REGION: "eu-de"
merge:
runs-on: ubuntu-latest
name: merge branch into devel
environment: github
needs:
- acc_tests
if: ${{ github.event.label.name == 'gate' && success() }}
steps:
- uses: actions/checkout@v4
- uses: kattecon/gh-app-access-token-gen@v1
id: gen_token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_KEY }}
- uses: devmasx/merge-branch@master
with:
label_name: 'gate'
target_branch: 'devel'
github_token: ${{ steps.gen_token.outputs.token }}
41 changes: 41 additions & 0 deletions .github/workflows/otc-golangci-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: check code quality

on:
pull_request:
types:
- opened
- edited
- synchronize
- labeled

jobs:
lint:
name: run golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.20"
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.53.3
vet:
name: run go vet
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.20"
- run: make vet
unit_tests:
name: run unit tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.20"
- run: make test
File renamed without changes.
Loading