Skip to content

feat: add tests and swagger #2

feat: add tests and swagger

feat: add tests and swagger #2

Workflow file for this run

name: Go
on:
push:
branches: [ "master", "main" ]
pull_request:
branches: [ "master", "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Build
run: |
go mod tidy
go build -v ./...
- name: Lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
- name: Test
run: |
go mod tidy
go test -v -coverprofile=coverage.txt -race -covermode=atomic ./...
integration-tests:

Check failure on line 35 in .github/workflows/go.yaml

View workflow run for this annotation

GitHub Actions / Go

Invalid workflow file

The workflow is not valid. .github/workflows/go.yaml (Line: 35, Col: 5): Unexpected value 'integration-tests'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run All
run: |
make run
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Integration test
working-directory: ./tests
run: |
go mod tidy
go test -v ./...
- name: Stop All
run: |
make stop