Write a GitHub Actions workflow file at /app/.github/workflows/main.yml matching the structural specification below. The verifier runs yamllint on your file and then compares its structure against a hidden reference workflow. You pass when the YAML parses cleanly and your workflow covers the reference's jobs and actions (thresholds: ≥ 70% of reference job names present, ≥ 50% of reference actions referenced; or, for single-job references, ≥ 50% of reference actions in any one of your jobs).
Workflow spec
Workflow name: QA
Triggers: pull_request, push
Required jobs
validate (runs-on: ubuntu-latest)
Check out code — uses actions/checkout
uses dorny/paths-filter
Set up Go 1.x [Go] — uses actions/setup-go
Cache Go files [Go] — uses actions/cache
Get Go dependencies [Go] — runs go mod download
Run Revive Action [Go] — runs go get -u github.com/mgechev/revive
Unit test [Go] — runs go test -v ./...
Go build [Go] — runs go build -v ./...
Go build (with docker tag) [Go] — runs go build -tags docker -v ./...
Set up Node.JS 12.16 [UI] — uses actions/setup-node
Cache node modules [UI] — uses actions/cache
Install Node Dependencies [UI] — runs npm install
... (2 more steps)
Notes
Action SHA/tag pins are not required to match; only the action name before @ is compared (e.g. actions/checkout matches any version).
You may include additional jobs or steps; the verifier only requires that the reference jobs/actions are present.
yamllint is run in relaxed mode (line-length, indentation, comments, etc. are tolerated). Only hard syntax errors fail it.
The sandbox base image is python:3.10-slim with yamllint and PyYAML preinstalled.