Files
CollabTable/.github/workflows/tests.yml
T
Gabriel20xx 778cded8bf
Tests / Go backend (push) Canceled after 2s
Lint / Lint (push) Failing after 11m0s
Tests / Dashboard checks (push) Failing after 2m33s
Docker / Docker Build & Push (push) Failing after 9s
fix: follow latest SharedCode main
2026-08-05 17:10:03 +02:00

79 lines
1.8 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: {}
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: Checkout latest SharedCode
working-directory: ${{ github.workspace }}
run: git clone --depth 1 --branch main --single-branch https://repos.gfranz.ch/Gabriel20xx/SharedCode.git SharedCode
- 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: Checkout latest SharedCode
working-directory: ${{ github.workspace }}
run: git clone --depth 1 --branch main --single-branch https://repos.gfranz.ch/Gabriel20xx/SharedCode.git SharedCode
- 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 ci
- name: Check dashboard
run: npm run check