Skip to content

Commit f9bcd59

Browse files
committed
Add "Smoke Test" GitHub Actions workflow to validate scenarios using the output of "npm pack".
1 parent b15ff63 commit f9bcd59

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/smoke-test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Smoke Test
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches-ignore:
7+
- 'dependabot/**'
8+
schedule:
9+
- cron: '30 12 * * *'
10+
workflow_dispatch:
11+
12+
jobs:
13+
smoke-test:
14+
runs-on: ${{ matrix.os }}
15+
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
os: [ macos-latest, ubuntu-latest, windows-latest ]
20+
node-version: [ 16, 18, 20 ]
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
- uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
- run: npm clean-install
28+
- run: npm pack
29+
- run: npm exec --yes -- cpy-cli "markdownlint-cli2-*.tgz" . --rename=markdownlint-cli2.tgz
30+
- run: npm exec --yes -- del-cli node_modules .npmrc package.json package-lock.json npm-shrinkwrap.json
31+
- run: npm install markdownlint-cli2.tgz
32+
- run: node_modules/.bin/markdownlint-cli2 README.md
33+
- run: npm clean-install
34+
- run: node_modules/.bin/markdownlint-cli2 README.md

0 commit comments

Comments
 (0)