-
-
Notifications
You must be signed in to change notification settings - Fork 104
/
Copy pathaction.yaml
44 lines (39 loc) · 1.09 KB
/
action.yaml
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
name: smoke_test
description: Run the smoke tests
inputs:
shell:
required: false
description: Shell to use, defaults to (bash || powershell)
use_cspell_cache:
required: false
description: Load the CSpell cache
runs:
using: 'composite'
steps:
- name: Show inputs
env:
INPUTS: ${{ toJSON(inputs) }}
OS: ${{ runner.os }}
run: |
echo "$INPUTS"
echo "$OS"
node -v
shell: bash
- name: Restore CSpell cache
uses: actions/[email protected]
if: ${{ inputs.use_cspell_cache == 'true' }}
with:
key: cspell-cache-${{ runner.os }}-smoke-test-${{ hashFiles('**/*.ts', '**/*.md') }}
path: |
.cspellcache
restore-keys: |
cspell-cache-${{ runner.os }}-smoke-test-
- name: verify trace command
run: pnpm run test:bin-trace
shell: ${{ inputs.shell }}
- name: verify the spell checker runs
run: pnpm run test:bin-spell
shell: ${{ inputs.shell }}
- name: verify the check command
run: pnpm run test:bin-check
shell: ${{ inputs.shell }}