Skip to content

Commit

Permalink
change the PR config
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorVin committed Nov 11, 2024
1 parent c4a05dd commit e145b98
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 41 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/ci.yaml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/push-pr-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: lint and test
on: [pull_request, push]

jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: --config .golangci.yml --timeout 2m
version: v1.61.0

- name: Test
run: go test ./...
with:
args: -tags testtools

build:
runs-on: ubuntu-latest
needs: [lint-test]
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod

0 comments on commit e145b98

Please sign in to comment.