-
Notifications
You must be signed in to change notification settings - Fork 12
37 lines (30 loc) · 1.11 KB
/
callable-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
# 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]
# This allows other repositories to call this workflow in a reusable way
workflow_call:
jobs:
run:
runs-on: ubuntu-latest
permissions:
contents: read # Allows reading the repo contents
steps:
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
fetch-depth: 0
- name: Install UDS CLI
uses: defenseunicorns/setup-uds@ab842abcad1f7a3305c2538e3dd1950d0daacfa5 # v1.0.1
with:
version: v0.17.0
- name: Install lint deps
run: |
uds run lint:deps --no-progress
- name: Lint the repository
run: |
uds run lint:all --no-progress