-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.49 KB
/
Copy pathci-smoke-chezmoi.yml
File metadata and controls
53 lines (45 loc) · 1.49 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
52
53
name: Smoke (chezmoi scripts)
on:
push:
branches: [master, main]
paths:
- "home/.chezmoiscripts/**"
- "tests/smoke/**"
- "scripts/smoke-chezmoi-scripts.sh"
- ".github/workflows/ci-smoke-chezmoi.yml"
pull_request:
branches: [master, main]
paths:
- "home/.chezmoiscripts/**"
- "tests/smoke/**"
- "scripts/smoke-chezmoi-scripts.sh"
- ".github/workflows/ci-smoke-chezmoi.yml"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
smoke:
name: Smoke (bash 5.1)
# Pinned to ubuntu-22.04 (bash 5.1.16) on purpose: the original empty-array
# bug is masked on bash 5.2+. ubuntu-latest moved to ubuntu-24.04 (bash
# 5.2.21), where the smoke would silently pass against unfixed code. When
# ubuntu-22.04 reaches end of support (~2027), migrate this job to a
# bash:5.1 Docker container in a separate PR.
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Report bash version (sanity check)
run: bash --version | head -1
- name: Install chezmoi
uses: ./.github/actions/install-chezmoi
with:
install-dir: "$HOME/.local/bin"
add-to-path: "true"
- name: Run smoke fixtures
run: ./scripts/smoke-chezmoi-scripts.sh