-
Notifications
You must be signed in to change notification settings - Fork 204
45 lines (40 loc) · 1.02 KB
/
cli-ci.yml
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
name: cli-ci
on:
pull_request:
paths:
- "cli/**"
- ".github/workflows/cli-ci.yml"
- "go.mod"
branches: [main]
permissions:
contents: read
pull-requests: write
jobs:
azd-lint:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/setup-go@v3
with:
go-version: "^1.23.0"
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.60.1
args: -v --timeout 10m0s
working-directory: cli/azd
cspell-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm install -g cspell@8.13.1
- name: Spell check for go and docs
run: cspell lint '**/*.{go,md}' --config ./cli/azd/.vscode/cspell.yaml --root ./cli/azd --no-progress
bicep-lint:
uses: ./.github/workflows/lint-bicep.yml