Skip to content

Commit

Permalink
feat(ci): github lint and test
Browse files Browse the repository at this point in the history
  • Loading branch information
htquangg committed Jul 27, 2024
1 parent e9ec188 commit eb2bc18
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
unit:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
cache: true

- name: Install dependencies go
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.57.2

- name: Run go linter
run: make lint

- name: Run go test
run: make test

0 comments on commit eb2bc18

Please sign in to comment.