-
-
Notifications
You must be signed in to change notification settings - Fork 48
37 lines (33 loc) · 1.04 KB
/
smoke-test.yml
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
name: Smoke Test
on:
pull_request:
push:
branches-ignore:
- 'dependabot/**'
schedule:
- cron: '30 12 * * *'
workflow_dispatch:
jobs:
smoke-test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
node-version: [ 18, 20 ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm pack
- run: npm exec --yes -- cpy-cli "markdownlint-cli2-*.tgz" . --rename=markdownlint-cli2.tgz
- run: npm exec --yes -- del-cli node_modules .npmrc npm-shrinkwrap.json package.json package-lock.json
- run: npm install markdownlint-cli2.tgz
- run: node_modules/.bin/markdownlint-cli2 README.md
- run: npm clean-install
- run: node_modules/.bin/markdownlint-cli2 README.md
- run: git clean -dfx && git restore .
- run: npm exec --yes -- midnight-smoker test-invoke-as-cli
if: matrix.os != 'windows-latest'