Skip to content

Commit

Permalink
feat(worflow): add go build workflow (#5)
Browse files Browse the repository at this point in the history
* feat(worflow): add go build workflow

* feat(worflow): update run command

* feat(worflow): update go version

* feat(worflow): update run command
  • Loading branch information
vit0rr authored Oct 18, 2024
1 parent 69f2c66 commit ba719c2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/test-if-builds.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 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: Go

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'

- name: Build
run: go build -v ./cmd/api/main.go
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ require (
github.com/go-chi/chi/v5 v5.1.0
github.com/hashicorp/hcl/v2 v2.22.0
github.com/segmentio/ksuid v1.0.4
github.com/sqids/sqids-go v0.4.1
go.mongodb.org/mongo-driver v1.17.1
)

Expand All @@ -18,7 +19,6 @@ require (
github.com/klauspost/compress v1.13.6 // indirect
github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 // indirect
github.com/montanaflynn/stats v0.7.1 // indirect
github.com/sqids/sqids-go v0.4.1 // indirect
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
github.com/xdg-go/scram v1.1.2 // indirect
github.com/xdg-go/stringprep v1.0.4 // indirect
Expand Down

0 comments on commit ba719c2

Please sign in to comment.