-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.38 KB
/
Copy pathci.yaml
File metadata and controls
51 lines (45 loc) · 1.38 KB
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
name: CI
on:
push:
branches:
- main
pull_request:
schedule:
- cron: "0 0 * * 5"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# Least privilege: every job here only reads the repo.
permissions:
contents: read
jobs:
lint:
name: Lint shell, markdown, YAML, and workflows
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0
- run: mise lint
chezmoi_dry_run:
name: Chezmoi Test (dry-run, ${{ matrix.context }})
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
context: [personal, work]
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0
- name: Stub chezmoi config (${{ matrix.context }} context)
uses: ./.github/actions/write-chezmoi-config
with:
context: ${{ matrix.context }}
- name: Dry-run apply
run: mise apply-dry-run
test:
name: Run bats tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0
- run: mise test