Skip to content

init frontend test #193

init frontend test

init frontend test #193

Workflow file for this run

name: Backend test
on:
push:
branches: [main]
pull_request:
permissions: read-all
jobs:
check-generated-gql:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.25"
- name: Regenerate GraphQL code
run: go run . gql
- name: Check for uncommitted changes
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "Generated GraphQL files are out of date. Run 'go run . gql' and commit the changes."
git diff
exit 1
fi
backend-test:
runs-on: ubuntu-latest
services:
dind:
image: docker:27.5.1-dind-rootless
ports:
- 2375:2375
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.25"
- name: Run tests with Docker
run: go test -v ./...