Skip to content

Commit

Permalink
Added build and test workflow for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
sonamtenzin6 committed Jan 30, 2025
1 parent 17a8a43 commit 16ceb8b
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build and Test Workflow

on:
push:
branches: []
pull_request:
branches: [ "master" ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Setup Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a
with:
go-version: '1.23'
- name: Test Go
run: go test -v ./...

build:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Setup Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a
with:
go-version: '1.23'
- name: Build Go
run: go build ./...

0 comments on commit 16ceb8b

Please sign in to comment.