Skip to content

Commit

Permalink
Update go version and release gh action
Browse files Browse the repository at this point in the history
Signed-off-by: Jian Qiu <jqiu@redhat.com>
  • Loading branch information
qiujian16 committed Oct 9, 2023
1 parent 631e21e commit 952d328
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ocm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ name: OCM
on:
repository_dispatch:
types: [ocm_changes]
env:
GO_VERSION: '1.20'

jobs:
e2e-test:
Expand All @@ -15,6 +17,6 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: ${{ env.GO_VERSION }}
- name: E2E Tests
run: make test-e2e
9 changes: 6 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:

name: Create Release

env:
GO_VERSION: '1.20'

jobs:
build:
name: Create Release
Expand All @@ -18,7 +21,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: ${{ env.GO_VERSION }}
- name: Check version
run: |
cat VERSION.txt | grep ${{ github.ref_name }}
Expand All @@ -30,7 +33,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body_path: CHANGELOG.md
files: |
bin/clusteradm_darwin_amd64.tar.gz
bin/clusteradm_darwin_arm64.tar.gz
Expand All @@ -39,5 +41,6 @@ jobs:
bin/clusteradm_linux_ppc64le.tar.gz
bin/clusteradm_linux_s390x.tar.gz
bin/clusteradm_windows_amd64.zip
draft: false
draft: true
prerelease: false
generate_release_notes: true
9 changes: 6 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
pull_request:
branches: [ main, release-* ]

env:
GO_VERSION: '1.20'

jobs:
verify:
runs-on: ubuntu-latest
Expand All @@ -16,7 +19,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: ${{ env.GO_VERSION }}
- name: verify
run: make verify

Expand All @@ -27,7 +30,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: ${{ env.GO_VERSION }}
- name: Integration Tests
run: make test-integration

Expand All @@ -39,7 +42,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: ${{ env.GO_VERSION }}

- name: E2E Tests
run: make test-e2e
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module open-cluster-management.io/clusteradm

go 1.19
go 1.20

require (
github.com/briandowns/spinner v1.18.1
Expand Down

0 comments on commit 952d328

Please sign in to comment.