chore: fix dockerfile and update ci/cd piplines
Some checks failed
Backend ci / build (push) Failing after 1m29s
Some checks failed
Backend ci / build (push) Failing after 1m29s
This commit is contained in:
39
.gitea/workflows/ci-back.yml
Normal file
39
.gitea/workflows/ci-back.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Backend ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
defaults:
|
||||
run:
|
||||
working-directory: backend
|
||||
|
||||
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
- name: Go setup
|
||||
uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: '1.25'
|
||||
cache: false
|
||||
- name: Install deps
|
||||
run: go mod tidy
|
||||
- name: Golangci-lint
|
||||
uses: golangci/golangci-lint-action@v9.2.0
|
||||
with:
|
||||
args: --timeout=5m
|
||||
skip-cache: true
|
||||
- name: Run tests
|
||||
run: go test ./...
|
||||
- name: Build
|
||||
run: go build -o backend ./cmd/banforge
|
||||
Reference in New Issue
Block a user