-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (44 loc) · 1.37 KB
/
Copy pathaction-smoke.yml
File metadata and controls
49 lines (44 loc) · 1.37 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
name: Action smoke test
# Exercise the root composite action (action.yml) end-to-end on every
# runner OS it claims to support, so a break in the OS/arch mapping, the
# checksum verification, or the PATH wiring fails the PR rather than a
# downstream user's workflow. It installs a pinned past release, so the
# test is deterministic and does not depend on this PR being released yet.
on:
push:
branches: [main]
paths:
- "action.yml"
- ".github/workflows/action-smoke.yml"
pull_request:
branches: [main]
paths:
- "action.yml"
- ".github/workflows/action-smoke.yml"
permissions:
contents: read
jobs:
smoke:
name: Install and run (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- id: mdsmith
uses: ./
with:
# A real, immutable past release so the download is deterministic.
version: v0.41.0
args: version
- name: Verify mdsmith stayed on PATH and reported a version
shell: bash
env:
GOT_VERSION: ${{ steps.mdsmith.outputs.version }}
run: |
mdsmith version
test -n "$GOT_VERSION"