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 f9a57a7 commit 2f3d87a
Showing 1 changed file with 26 additions and 0 deletions.
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 2f3d87a

Please sign in to comment.