Skip to content

Commit 246afba

Browse files
committed
More workflow updates to update assets
1 parent 853fdfc commit 246afba

File tree

2 files changed

+42
-12
lines changed

2 files changed

+42
-12
lines changed

.github/workflows/pull_request.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Pull Request Workflow
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
env:
9+
GO_VERSION: 1.20
10+
11+
jobs:
12+
run-tests:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
18+
- name: Setup Go
19+
uses: actions/setup-go@v3
20+
with:
21+
go-version: ${{ env.GO_VERSION }}
22+
23+
- name: Go Lint
24+
uses: golangci/[email protected]
25+
with:
26+
args: --timeout=5m --enable exportloopref
27+
skip-pkg-cache: true
28+
skip-build-cache: true
29+
skip-go-installation: true
30+
31+
- name: Build
32+
run: go build -o k8s-parallel-exec
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
# This workflow will build a golang project
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3-
4-
name: Go
1+
name: Release Workflow
52

63
on:
7-
push:
8-
branches: [ "main" ]
9-
pull_request:
10-
branches: [ "main" ]
4+
release:
5+
types:
6+
- published
117

12-
jobs:
8+
env:
9+
GO_VERSION: 1.20
1310

11+
jobs:
1412
build:
1513
runs-on: ubuntu-latest
1614
steps:
@@ -19,10 +17,10 @@ jobs:
1917
- name: Set up Go
2018
uses: actions/setup-go@v3
2119
with:
22-
go-version: 1.19
20+
go-version: ${{ env.GO_VERSION }}
2321

2422
- name: Go Lint
25-
uses: golangci/golangci-lint-action@v3.3.1
23+
uses: golangci/golangci-lint-action@v3.4.0
2624
with:
2725
args: --timeout=5m --enable exportloopref
2826
skip-pkg-cache: true
@@ -37,4 +35,4 @@ jobs:
3735
env:
3836
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3937
with:
40-
args: 'k8s-parallel-exec'
38+
args: './k8s-parallel-exec'

0 commit comments

Comments
 (0)