Files
CollabTable/.github/workflows/tests.yml
T
Gabriel20xx f208697859
Docker / Docker Build & Push (push) Successful in 8m26s
Lint / Lint (push) Failing after 20s
Tests / Go backend (push) Successful in 16s
Tests / Dashboard checks (push) Successful in 23s
Apply shared UI and workflow fixes
2026-08-07 15:22:26 +02:00

75 lines
1.5 KiB
YAML

name: Tests
on:
push:
branches:
- "**"
paths:
- 'backend/**'
- 'frontend/**'
- '.github/workflows/tests.yml'
pull_request:
branches:
- main
- master
paths:
- 'backend/**'
- 'frontend/**'
- '.github/workflows/tests.yml'
workflow_dispatch: {}
env:
jobs:
backend:
name: Go backend
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: false
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: backend/go.mod
cache: true
- name: Test
run: go test ./...
frontend:
name: Dashboard checks
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: false
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm
cache-dependency-path: frontend/package-lock.json
- name: Install dependencies
run: |
npm install --prefix ../shared/packages/web-ui --no-package-lock --ignore-scripts --no-audit --no-fund --omit=dev
npm ci
- name: Check dashboard
run: npm run check