Skip to content

Commit

Permalink
Create build_and_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtenorio authored Nov 25, 2024
1 parent 0964fa6 commit 7847450
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Build and Test

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

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'
# Ensure sqlc is installed
- uses: sqlc-dev/setup-sqlc@v4
with:
sqlc-version: '1.27.0'
- name: Verify sqlc
run: sqlc version
- name: Generate sqlc
run: sqlc generate
- name: Build
run: go build -v ./...

# - name: Test
# run: go test -v ./...

0 comments on commit 7847450

Please sign in to comment.