Added more issue templates etc.
This commit is contained in:
30
.gitea/workflows/test-and-lint.yaml
Normal file
30
.gitea/workflows/test-and-lint.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Code Quality and Testing
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, 'feature/**', 'bugfix/**', 'chore/**', 'refactor/**' ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
test-and-lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.22'
|
||||
|
||||
- name: Check Go Formatting (gofmt)
|
||||
run: |
|
||||
if [ -n "$(gofmt -l .)" ]; then
|
||||
echo "The following files are not properly formatted. Please run 'gofmt -w .'"
|
||||
gofmt -l .
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Run Unit Tests
|
||||
run: go test -v ./...
|
||||
Reference in New Issue
Block a user