24 lines
546 B
YAML
24 lines
546 B
YAML
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 |