mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-06 16:04:23 +00:00
40 lines
695 B
YAML
40 lines
695 B
YAML
name: Go Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "*"
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
test:
|
|
name: Run Tests
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: ./server
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.23"
|
|
cache: true
|
|
|
|
# - name: Install dependencies
|
|
# run: |
|
|
# sudo apt-get update
|
|
# sudo apt-get install -y gcc
|
|
|
|
- name: Run Tests
|
|
run: go test ./... -v
|
|
|
|
- name: Run Tests with Race Detector
|
|
run: go test -race ./... -v
|