Skip to content

Commit e4d8ae4

Browse files
committed
Add CI job to check for forgotten packaging
In order to allow beta testing, it is necessary to package the action after every change to the code. This is an easy step to forget, so an automated check is necessary.
1 parent 1e53b9c commit e4d8ae4

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/setup-taskflile.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,29 @@ jobs:
2929

3030
- name: npm test
3131
run: npm test
32+
33+
check-packaging:
34+
runs-on: ubuntu-latest
35+
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v2
39+
40+
- name: Setup Node.js
41+
uses: actions/setup-node@v2
42+
with:
43+
node-version: 12.x
44+
45+
- name: Install dependencies
46+
run: npm install
47+
48+
- name: Build action
49+
run: npm run build
50+
51+
- name: Package action
52+
run: npm run pack
53+
54+
- name: Check packaging
55+
# Ignoring CR because ncc's output has a mixture of line endings, while the repository should only contain
56+
# Unix-style EOL.
57+
run: git diff --ignore-cr-at-eol --color --exit-code dist

0 commit comments

Comments
 (0)