File tree Expand file tree Collapse file tree 2 files changed +54
-0
lines changed
Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Check Packaging
2+
3+ env :
4+ # See: https://github.com/actions/setup-node/#readme
5+ NODE_VERSION : 10.x
6+
7+ on :
8+ push :
9+ paths :
10+ - " .github/workflows/check-packaging-ncc-typescript-npm.yml"
11+ - " lerna.json"
12+ - " package.json"
13+ - " package-lock.json"
14+ - " Taskfile.ya?ml"
15+ - " tsconfig.json"
16+ - " **.[jt]sx?"
17+ pull_request :
18+ paths :
19+ - " .github/workflows/check-packaging-ncc-typescript-npm.yml"
20+ - " lerna.json"
21+ - " package.json"
22+ - " package-lock.json"
23+ - " Taskfile.ya?ml"
24+ - " tsconfig.json"
25+ - " **.[jt]sx?"
26+ workflow_dispatch :
27+ repository_dispatch :
28+
29+ jobs :
30+ check-packaging :
31+ runs-on : ubuntu-latest
32+
33+ steps :
34+ - name : Checkout
35+ uses : actions/checkout@v2
36+
37+ - name : Setup Node.js
38+ uses : actions/setup-node@v2
39+ with :
40+ node-version : ${{ env.NODE_VERSION }}
41+
42+ - name : Install dependencies
43+ run : npm install
44+
45+ - name : Build project
46+ run : |
47+ npm run-script build
48+ npm run-script pack
49+
50+ - name : Check packaging
51+ # Ignoring CR because ncc's output has a mixture of line endings, while the repository should only contain
52+ # Unix-style EOL.
53+ run : git diff --ignore-cr-at-eol --color --exit-code dist
Original file line number Diff line number Diff line change 22
33[ ![ Tests Status] ( https://github.com/arduino/arduino-lint-action/workflows/Test%20Action/badge.svg )] ( https://github.com/arduino/arduino-lint-action/actions?workflow=Test+Action )
44[ ![ Integration Tests Status] ( https://github.com/arduino/arduino-lint-action/workflows/Integration%20Tests/badge.svg )] ( https://github.com/arduino/arduino-lint-action/actions?workflow=Integration+Tests )
5+ [ ![ Check Packaging status] ( https://github.com/arduino/arduino-lint-action/actions/workflows/check-packaging-ncc-typescript-npm.yml/badge.svg )] ( https://github.com/arduino/arduino-lint-action/actions/workflows/check-packaging-ncc-typescript-npm.yml )
56[ ![ Spellcheck Status] ( https://github.com/arduino/arduino-lint-action/workflows/Spell%20Check/badge.svg )] ( https://github.com/arduino/arduino-lint-action/actions?workflow=Spell+Check )
67
78[ GitHub Actions] ( https://docs.github.com/en/free-pro-team@latest/actions ) action that uses
You can’t perform that action at this time.
0 commit comments