Skip to content

Commit

Permalink
Add PR workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Kavinraja-G committed Sep 10, 2023
1 parent 0a18d3a commit ef50399
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: pr

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.20

- name: Go Build
run: go build -v ./...

- name: Go Test
run: go test -v ./...
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,19 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.20

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create PR in krew-index
uses: rajatjindal/[email protected]

0 comments on commit ef50399

Please sign in to comment.