Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: init #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: check fmt and build

on:
push:
branches: [main]

pull_request:
branches: [main]

jobs:
check-go-fmt-build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.17", "1.18"]
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"

- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}

- name: check go fmt
run: |
make fmt && \
git diff-index --exit-code HEAD

- name: check go build
run: |
make all
2 changes: 1 addition & 1 deletion docs/docs.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// Package docs GENERATED BY SWAG; DO NOT EDIT
// This file was generated by swaggo/swag
package docs

Expand Down