[feature] migrate to monorepo
This commit is contained in:
commit
05ddc1f783
267 changed files with 75165 additions and 0 deletions
33
.forgejo/workflows/test.yml
Normal file
33
.forgejo/workflows/test.yml
Normal file
|
@ -0,0 +1,33 @@
|
|||
name: Test Backend
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: [docker, amd64]
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: 'stable'
|
||||
|
||||
- name: Set up dependencies
|
||||
run: go mod download
|
||||
|
||||
- name: Install mockgen
|
||||
run: go install go.uber.org/mock/mockgen@latest
|
||||
|
||||
- name: Generate mocks
|
||||
run: go generate ./...
|
||||
working-directory: backend
|
||||
|
||||
- name: Run tests
|
||||
run: go test -v ./...
|
||||
working-directory: backend
|
Loading…
Add table
Add a link
Reference in a new issue