-
Notifications
You must be signed in to change notification settings - Fork 11
52 lines (48 loc) · 1.19 KB
/
ci_ts_test_on_pull.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
49
50
51
52
name: Continuous Integration NPM
on:
pull_request:
paths-ignore:
- "docs/**"
- "README.md"
- "LICENSE"
- ".editorconfig"
branches:
- main
- develop
- staging
env:
working_dir: ./ts-client
jobs:
changed_files_ts:
runs-on: ubuntu-latest
outputs:
program: ${{steps.changed-files-specific.outputs.any_changed}}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get specific changed files
id: changed-files-specific
uses: tj-actions/[email protected]
with:
files: |
ts-client
ts-test:
needs: changed_files_ts
runs-on: ubuntu-latest
if: needs.changed_files_ts.outputs.program == 'true'
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- uses: pnpm/action-setup@v4
with:
version: 6.0.2
- name: Install dependencies
working-directory: ${{ env.working_dir }}
run: pnpm install
- name: Run tests
working-directory: ${{ env.working_dir }}
run: pnpm run test