Files
worktimeBot/.gitea/workflows/ci.yml
db123 5666170824
Some checks failed
CI / build (push) Failing after 19s
CI: remove sudo from install step (root in act)
2026-06-23 20:26:08 +03:30

33 lines
589 B
YAML

name: CI
on:
push:
branches: [main, master]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
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.22"
- 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 ./...