-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1.49 KB
/
lint.yaml
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
51
52
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial
name: Lint
on:
# This workflow is triggered on pull requests to the main branch.
pull_request:
# milestoned is added here as a workaround for release-please not triggering PR workflows (PRs should be added to a milestone to trigger the workflow).
types: [milestoned, opened, reopened, synchronize]
# Permissions for the GITHUB_TOKEN used by the workflow.
permissions:
contents: read # Allows reading the content of the repository.
jobs:
run:
runs-on: ubuntu-latest
permissions:
contents: read # Allows reading the repo contents
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Install UDS CLI
uses: defenseunicorns/setup-uds@b987a32bac3baeb67bfb08f5e1544e2f9076ee8a # v1.0.0
with:
# renovate: datasource=github-tags depName=defenseunicorns/uds-cli versioning=semver
version: v0.18.0
- name: Install lint deps
run: |
uds run lint:deps --no-progress
- name: Lint YAML
run: |
uds run lint:yaml --no-progress
- name: Lint Scripts
run: |
uds run lint:shell --no-progress
- name: Lint Tasks
run: |
uds run lint:tasks --no-progress
- name: Lint License
run: |
uds run lint:license --no-progress