ci: add Gitea Actions workflows and placeholder tests
Some checks failed
CI / ci (push) Failing after 47s
Some checks failed
CI / ci (push) Failing after 47s
This commit is contained in:
24
.gitea/workflows/ci.yml
Normal file
24
.gitea/workflows/ci.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [dev]
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.22'
|
||||
|
||||
- name: Vet
|
||||
run: go vet ./...
|
||||
|
||||
- name: Test
|
||||
run: go test ./... -v
|
||||
|
||||
- name: Build
|
||||
run: CGO_ENABLED=0 go build -o main ./cmd/api
|
||||
21
.gitea/workflows/deploy-prod.yml
Normal file
21
.gitea/workflows/deploy-prod.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Deploy Production
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.22'
|
||||
|
||||
- name: Build
|
||||
run: CGO_ENABLED=0 go build -o main ./cmd/api
|
||||
|
||||
- name: Deploy
|
||||
run: echo "Production deploy via docker"
|
||||
Reference in New Issue
Block a user