Skip to content

Commit

Permalink
Added CI.
Browse files Browse the repository at this point in the history
Added CI.
  • Loading branch information
cn0047 authored Oct 21, 2022
2 parents 172745c + 8ff832e commit d348d19
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on:
push:
branches: [ master, '**' ]
pull_request:
branches: [ master, '**' ]
workflow_dispatch:

jobs:
check-go-code:
name: "Check go code"
runs-on: ubuntu-latest

steps:
- name: "Check out"
uses: actions/checkout@v3

- name: "Set up Go"
uses: actions/setup-go@v2
with:
go-version: 1.19

- name: "Format"
run: go fmt ./...

- name: "Vet"
run: go vet ./...

- name: "Lint"
uses: golangci/golangci-lint-action@v3
with:
args: .

0 comments on commit d348d19

Please sign in to comment.