-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.03 KB
/
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
46
47
48
49
50
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_call:
workflow_dispatch:
env:
TASK_X_REMOTE_TASKFILES: 1
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
env:
BRANCH: ${{ github.head_ref || github.ref_name }}
GH_TOKEN: ${{ github.token }}
run: gh repo clone ${{ github.repository }} ${{ github.workspace }} -- --depth=1 --branch "$BRANCH"
- name: Add brew to PATH
shell: bash
run: |-
{
echo "/home/linuxbrew/.linuxbrew/sbin";
echo "/home/linuxbrew/.linuxbrew/bin";
} >> "$GITHUB_PATH"
- name: Install tools
run: |
brew install \
actionlint \
check-jsonschema \
fd \
go-task \
jq \
prettier \
shellcheck \
shfmt \
yamlfmt \
yamllint \
- name: Lint
run: task lint --yes