Skip to content

add github actions

add github actions #1

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: go test -v -count=1 -race ./...
- name: lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.54