Skip to content

Commit

Permalink
Add label based github actions #562 and go version update
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevatkm committed Jul 19, 2022
1 parent 3d08b36 commit 3944226
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 'Label Actions'

on:
pull_request:
types: [labeled]

jobs:
build:
name: OnDemand 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 3944226

Please sign in to comment.