-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (41 loc) · 1.17 KB
/
test-light.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
38
39
40
41
42
43
44
45
46
47
48
name: Test light
on:
workflow_dispatch:
push:
permissions: {}
jobs:
test:
strategy:
fail-fast: false
matrix:
node-version: [20.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 10
name: Node ${{ matrix.node-version }}, ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Check if changed
uses: MarceloPrado/[email protected]
id: changed
with:
paths: . :^**.txt :^**.md :^**.xlsx :^**.d.ts :^**.yml .github/workflows/test-light.yml
- name: Use Node ${{ matrix.node-version }}
if: steps.changed.outputs.changed == 'true'
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install Dependencies
if: steps.changed.outputs.changed == 'true'
uses: nick-fields/retry@v2
with:
timeout_minutes: 2
max_attempts: 3
command: npm ci
- name: Test
if: steps.changed.outputs.changed == 'true'
run: node scripts/test --github-action