Skip to content

Commit 6cfd499

Browse files
authored
chore: consolidate workflows (#127)
1 parent 52dcb68 commit 6cfd499

File tree

2 files changed

+15
-21
lines changed

2 files changed

+15
-21
lines changed

.github/workflows/lint.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,20 @@ on:
1010
workflow_dispatch:
1111

1212
jobs:
13+
lint:
14+
name: lint
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Check out code into the Go module directory
18+
uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 0
21+
- name: golangci-lint
22+
uses: golangci/golangci-lint-action@v2
23+
with:
24+
version: latest
25+
only-new-issues: true
26+
1327
tests:
1428
name: Build & Test
1529
runs-on: ubuntu-latest
@@ -42,7 +56,7 @@ jobs:
4256
notify-on-failure:
4357
name: Slack notify on failure
4458
if: ${{ failure() && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}
45-
needs: [ tests ]
59+
needs: [ lint, tests ]
4660
runs-on: ubuntu-latest
4761
steps:
4862
- uses: rtCamp/action-slack-notify@v2

0 commit comments

Comments
 (0)