This commit is contained in:
24
.gitea/workflows/test.yaml
Normal file
24
.gitea/workflows/test.yaml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
name: Bot Unit Tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "main", "master", "dev" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "main", "master" ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
run-tests:
|
||||||
|
# This MUST match the label you defined in your Docker Stack
|
||||||
|
runs-on: go-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: go mod tidy
|
||||||
|
|
||||||
|
- name: Run Go Tests
|
||||||
|
# -v gives us verbose output so we see exactly what fails
|
||||||
|
# ./... runs tests in main and db_management
|
||||||
|
run: go test ./... -v
|
||||||
Reference in New Issue
Block a user