Skip to content

Commit

Permalink
Add label based github actions and go version update #562 (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevatkm committed Jul 19, 2022
1 parent 3d08b36 commit 313f419
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -20,7 +20,7 @@ jobs:
name: Build
strategy:
matrix:
go: [ '1.17.x', '1.16.x' ]
go: [ '1.18.x', '1.17.x' ]
os: [ ubuntu-latest ]

runs-on: ${{ matrix.os }}
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/label-actions.yml
@@ -0,0 +1,26 @@
name: 'Label'

on:
pull_request:
types: [labeled]

jobs:
build:
name: Run Build
if: ${{ github.event.label.name == 'run-build' }}
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.18.x'

- name: Test
run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic

- name: Coverage
run: bash <(curl -s https://codecov.io/bash)

0 comments on commit 313f419

Please sign in to comment.