Files
notas-online/.github/workflows/ci.yml
T
lgcosta 1866463b3d
ci / check (push) Successful in 57s
test(frontend): add jsdom tests for the file manager
Sobe web/index.html + web/js/app.js de verdade em jsdom, intercepta a API
e cobre arrastar-e-soltar entre pastas, mover/renomear/excluir, filtros,
busca e preview. CI passa a rodar npm ci && npm test.
2026-11-07 19:17:50 -03:00

31 lines
668 B
YAML

name: ci
on:
push:
branches: [main]
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/setup-go@v5.3.0
with:
go-version-file: go.mod
cache: true
- uses: actions/setup-node@v4.1.0
with:
node-version: 22
cache: npm
- name: gofmt
run: test -z "$(gofmt -l internal cmd)"
- name: go vet
run: go vet ./...
- name: go test -race
run: go test -race ./...
- name: frontend syntax
run: node --check web/js/app.js
- name: frontend tests
run: npm ci && npm test