Skip to content

Commit e964625

Browse files
authored
ci: move lint job to reusable golangci-lint workflow
1 parent f59f682 commit e964625

2 files changed

Lines changed: 17 additions & 18 deletions

File tree

‎.github/workflows/lint-test.yml‎

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,32 @@
1-
name: 🔨 Build Test
1+
name: 🔨 Tests
22

33
on:
44
pull_request:
55
paths:
66
- '**.go'
77
- '**.mod'
8+
- '.github/workflows/tests.yml'
9+
push:
10+
branches:
11+
- dev
12+
paths:
13+
- '**.go'
14+
- '**.mod'
15+
- '.github/workflows/tests.yml'
816
workflow_dispatch:
917

1018

1119
jobs:
20+
lint:
21+
name: Lint Test
22+
uses: projectdiscovery/workflows/.github/workflows/golangci-lint.yaml@v1
23+
permissions:
24+
contents: read
25+
pull-requests: read
26+
1227
build:
1328
name: Test Builds
29+
needs: [lint]
1430
runs-on: ubuntu-latest
1531
steps:
1632
- uses: actions/checkout@v7

0 commit comments

Comments
 (0)