Files
worktimeBot/.gitea/workflows/ci.yml
db123 316d8446ee
Some checks failed
CI / build (push) Failing after 4m54s
CI: set GOPROXY=direct to avoid proxy block
2026-06-23 20:32:57 +03:30

35 lines
620 B
YAML

name: CI
on:
push:
branches: [main, master]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
env:
GOPROXY: direct
steps:
- name: Install Node.js (required for GitHub Actions)
run: |
apt-get update
apt-get install -y nodejs
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.26"
- name: Check formatting
run: test -z "$(gofmt -d .)" || exit 1
- name: Vet
run: go vet ./...
- name: Build
run: go build ./...
- name: Test
run: go test ./...