File tree Expand file tree Collapse file tree 8 files changed +62
-40
lines changed
Expand file tree Collapse file tree 8 files changed +62
-40
lines changed Original file line number Diff line number Diff line change 11#
2- # Make sure dependencies use compatible licenses .
2+ # Run static code analysis .
33#
4- name : License Check
4+ name : Static Analysis
55
66on :
7- - pull_request
7+ workflow_call :
88
99jobs :
10- license -check :
11- name : Check licenses
10+ static -check :
11+ name : Run Static Analysis
1212 runs-on : ubuntu-latest
1313
1414 steps :
1515 - name : Check out Git repository
1616 uses : actions/checkout@v4
1717
1818 - name : Set up Node.js
19- uses : actions/setup-node@v3
19+ uses : actions/setup-node@v4
2020 with :
2121 node-version : 18
2222 cache : " npm"
2323
2424 - name : Install Node.js dependencies
2525 run : npm ci
2626
27+ - name : Test lint
28+ run : npm run lint
29+
2730 - name : Install NPM License Checker
2831 run : npm install -g license-checker
2932
Original file line number Diff line number Diff line change 11name : Test Code Samples
2+
23on :
3- pull_request :
4- schedule :
5- - cron : ' 0 23 * * *'
6- # Allow running this workflow manually from the Actions tab
4+ workflow_call :
75 workflow_dispatch :
86
97jobs :
2422 submodules : recursive
2523
2624 - name : Set up Node.js ${{ matrix.node-version }}
27- uses : actions/setup-node@v3
25+ uses : actions/setup-node@v4
2826 with :
2927 node-version : ${{ matrix.node-version }}
3028 cache : " npm"
Original file line number Diff line number Diff line change 1+ #
2+ # Run integration tests.
3+ #
14name : Integration Test
25
36on :
4- - push
7+ workflow_call :
58
69jobs :
710 run-tests :
2629 submodules : recursive
2730
2831 - name : Set up Node.js ${{ matrix.node-version }}
29- uses : actions/setup-node@v3
32+ uses : actions/setup-node@v4
3033 with :
3134 node-version : ${{ matrix.node-version }}
3235 cache : " npm"
Original file line number Diff line number Diff line change 1+ #
2+ # Run unit tests.
3+ #
14name : Test
25
36on :
4- - push
7+ workflow_call :
58
69jobs :
710 run-tests :
2427 submodules : recursive
2528
2629 - name : Set up Node.js ${{ matrix.node-version }}
27- uses : actions/setup-node@v3
30+ uses : actions/setup-node@v4
2831 with :
2932 node-version : ${{ matrix.node-version }}
3033 cache : " npm"
Original file line number Diff line number Diff line change 1+ name : Crontab
2+
3+ on :
4+ schedule :
5+ - cron : ' 23 0 * * *'
6+
7+ jobs :
8+ test_regressions :
9+ uses : mindee/mindee-api-nodejs/.github/workflows/_test-regressions.yml@main
10+ secrets : inherit
11+ test_code_samples :
12+ uses : mindee/mindee-api-nodejs/.github/workflows/_test-code-samples.yml@main
13+ secrets : inherit
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Pull Request
2+
3+ on :
4+ pull_request :
5+
6+ jobs :
7+ static_analysis :
8+ uses : mindee/mindee-api-nodejs/.github/workflows/_static-analysis.yml@main
9+ test_units :
10+ uses : mindee/mindee-api-nodejs/.github/workflows/_test-units.yml@main
11+ needs : static_analysis
12+ secrets : inherit
13+ test_integrations :
14+ uses : mindee/mindee-api-nodejs/.github/workflows/_test-integrations.yml@main
15+ needs : test_units
16+ secrets : inherit
17+ test_code_samples :
18+ uses : mindee/mindee-api-nodejs/.github/workflows/_test-code-samples.yml@main
19+ needs : test_units
20+ secrets : inherit
Original file line number Diff line number Diff line change 66 - main
77
88jobs :
9+ static_analysis :
10+ uses : mindee/mindee-api-nodejs/.github/workflows/_static-analysis.yml@main
11+ test_units :
12+ uses : mindee/mindee-api-nodejs/.github/workflows/_test-units.yml@main
13+ needs : static_analysis
14+ secrets : inherit
915 tag :
1016 uses : mindee/client-lib-actions/.github/workflows/tag-version.yml@main
17+ needs : test_units
You can’t perform that action at this time.
0 commit comments