Skip to content

Commit

Permalink
feat(github-action): add test and lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
miladbarzideh committed Sep 18, 2023
1 parent 55b54a5 commit 83124b3
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Go lint & test

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.6.0
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: test
run: |
go test -v -cover ./...

0 comments on commit 83124b3

Please sign in to comment.