Skip to content

add github actions

add github actions #2

Workflow file for this run

name: test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test-backend:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup-go
uses: actions/setup-go@v4
with:
go-version: "1.22"
- name: test
run:
- mkdir -p ui/dist && echo -e "User-agent: *\nDisallow: /api" > ui/dist/robots.txt

Check failure on line 23 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

You have an error in your yaml syntax on line 23
- go test -v -count=1 -race ./...
- name: lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.54