ci: add action to enforce semantic PR titles and run tests (#55)

This commit is contained in:
Adem Baccara
2025-09-19 12:31:49 +01:00
committed by GitHub
parent 3b9f866d55
commit 87c7f40d2d
5 changed files with 144 additions and 1 deletions
+39
View File
@@ -0,0 +1,39 @@
name: Go Build and Test
on:
pull_request:
branches:
- main
types:
- edited
- opened
- reopened
- synchronize
push:
branches:
- main
permissions:
contents: read
pull-requests: read
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: go.sum
cache: true
- name: Run make build
run: make build
- name: Run make test
run: make test