Skip to content

Commit

Permalink
Merge pull request #57 from foundriesio/gh-action
Browse files Browse the repository at this point in the history
Add golang-lint-ci action
  • Loading branch information
doanac authored Jan 6, 2025
2 parents c3591cc + ab8bbff commit 285bf31
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 27 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Lint
on:
pull_request:

jobs:
format:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- name: setup-go
uses: actions/setup-go@v5
with:
go-version: '~1.22'
- name: clone-code
uses: actions/checkout@v4
- name: golang-lint-ci
uses: golangci/golangci-lint-action@v6
with:
args: "--build-tags vpn"
version: v1.57
unit-test:
name: unit-test
runs-on: ubuntu-latest
steps:
- name: setup-go
uses: actions/setup-go@v5
with:
go-version: '~1.22'
- name: clone-code
uses: actions/checkout@v4
- name: unit-tests
run: go test -v ./...
27 changes: 0 additions & 27 deletions .jobserv.yml

This file was deleted.

0 comments on commit 285bf31

Please sign in to comment.