Skip to content

Commit

Permalink
Add ci test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mougams committed Jan 22, 2025
1 parent b67d98b commit 1216e14
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Tests
on:
push:
branches:
- master
pull_request:

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.23
uses: actions/setup-go@v5
with:
go-version: ^1.23

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build
run: go build .

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

- name: Check code formatting using gofmt
uses: Jerome1337/[email protected]
1 change: 1 addition & 0 deletions server/api_dev.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !release
// +build !release

package server
Expand Down

0 comments on commit 1216e14

Please sign in to comment.