Skip to content

Commit 313f419

Browse files
authored
Add label based github actions and go version update #562 (#563)
1 parent 3d08b36 commit 313f419

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
name: Build
2121
strategy:
2222
matrix:
23-
go: [ '1.17.x', '1.16.x' ]
23+
go: [ '1.18.x', '1.17.x' ]
2424
os: [ ubuntu-latest ]
2525

2626
runs-on: ${{ matrix.os }}

.github/workflows/label-actions.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 'Label'
2+
3+
on:
4+
pull_request:
5+
types: [labeled]
6+
7+
jobs:
8+
build:
9+
name: Run Build
10+
if: ${{ github.event.label.name == 'run-build' }}
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Setup Go
18+
uses: actions/setup-go@v2
19+
with:
20+
go-version: '1.18.x'
21+
22+
- name: Test
23+
run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic
24+
25+
- name: Coverage
26+
run: bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)