Skip to content

Commit 587b5a9

Browse files
authored
Merge pull request #14 from maxmind/wstorey/eng-3719-mmdbconvert-repo-runs-precious-in-github-actions-workflow
Use precious for linting in CI
2 parents 62e7a0d + 2e1dc30 commit 587b5a9

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- uses: actions/checkout@v6
1717
with:
1818
persist-credentials: false
19+
1920
- name: golangci-lint
2021
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # 9.2.0
2122
with:

.github/workflows/precious.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: precious
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '5 5 * * SUN'
8+
9+
permissions: {}
10+
11+
jobs:
12+
precious:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v6
16+
with:
17+
persist-credentials: false
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: "24"
22+
23+
- name: Install precious
24+
run: |
25+
curl -sL https://github.com/houseabsolute/precious/releases/download/v0.10.1/precious-Linux-musl-x86_64.tar.gz | tar xz -C /usr/local/bin
26+
27+
- name: Run precious
28+
run: precious lint --command prettier-markdown --all

0 commit comments

Comments
 (0)