forked from google/go-github
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) · 1.54 KB
/
Copy pathlinter.yml
File metadata and controls
50 lines (46 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
on: [push, pull_request]
name: linter
permissions:
contents: read
jobs:
check-generated:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: stable
cache-dependency-path: "**/go.sum"
- name: Check generated code
run: ./script/generate.sh --check
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: stable
cache-dependency-path: "**/go.sum"
- uses: golangci/golangci-lint-action@ff11551cdc017f1a8f189d5abe00cc7b1c15a6fb
with:
version: v2.12.2 # sync with version in .custom-gcl.yml
experimental: "automatic-module-directories,no-run-logs-group"
check-openapi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: stable
cache-dependency-path: "**/go.sum"
- name: Check OpenAPI
run: ./script/metadata.sh update-openapi --validate
env:
CHECK_GITHUB_OPENAPI: 1
GITHUB_TOKEN: ${{ github.token }}