Skip to content

Commit 641d7c1

Browse files
committed
CI: Switch to Makefile for running linters
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
1 parent 90cded1 commit 641d7c1

File tree

3 files changed

+9
-28
lines changed

3 files changed

+9
-28
lines changed

.github/workflows/lint.yaml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
1-
on: [push, pull_request]
21
name: Linters
2+
on:
3+
- push
4+
- pull_request
35
permissions:
46
contents: read
5-
67
jobs:
78
test:
89
runs-on: ubuntu-latest
9-
1010
steps:
11+
- name: Checkout Gophercloud
12+
uses: actions/checkout@v4
1113
- uses: actions/setup-go@v5
1214
with:
1315
go-version: '1'
14-
15-
- uses: actions/checkout@v4
16-
17-
- name: Run go fmt
16+
- name: Run linters
1817
run: |
19-
./script/format
20-
21-
- name: Run go vet
22-
run: |
23-
./script/vet
24-
18+
make lint
19+
# TODO: Use 'go mod tidy -diff' instead once go 1.23 is out
20+
# https://github.com/golang/go/issues/27005
2521
- name: Ensure go.mod is up-to-date
2622
run: |
2723
if [ $(go mod tidy && git diff | wc -l) -gt 0 ]; then git diff && exit 1; fi

script/format

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

script/vet

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

0 commit comments

Comments
 (0)