Skip to content

Commit

Permalink
Create build-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sulaiman-coder authored Jul 24, 2023
1 parent ad6ebd9 commit f4c8cef
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 🔨 Build Test
on:
pull_request:
workflow_dispatch:


jobs:
build:
name: Test Builds
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19

- name: Check out code
uses: actions/checkout@v3

- name: Test
run: go test -race ./...

- name: Build Example
run: go build example/main.go

0 comments on commit f4c8cef

Please sign in to comment.