Skip to content

Commit

Permalink
split actions
Browse files Browse the repository at this point in the history
  • Loading branch information
peczenyj committed Jun 3, 2024
1 parent a45c251 commit addff06
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 11 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: golangci-lint

on:
push:
branches:
- main
pull_request:

permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.58
12 changes: 1 addition & 11 deletions .github/workflows/workflows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test_and_lint
name: test

on:
push:
Expand All @@ -23,13 +23,3 @@ jobs:

- name: test
run: go test

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59.0

0 comments on commit addff06

Please sign in to comment.