Skip to content

Commit f1112b0

Browse files
committed
test(ci): isolate source packaging fixture from build validation
1 parent a8f7e68 commit f1112b0

5 files changed

Lines changed: 27 additions & 2 deletions

File tree

‎.github/workflows/__test-workflow-continuous-integration.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ jobs:
6060
pull-requests: write
6161
security-events: write
6262
with:
63-
working-directory: tests/npm
63+
working-directory: tests/source-package
6464
build: ""
6565
lint: ""
6666
test: ""
6767
code-ql: ""
6868
dependency-review: false
6969
package: |
70-
{"tests":"test -f \"$PACKAGE_INSTALL_PATH/src/index.js\""}
70+
{"tests":"test -f \"$PACKAGE_INSTALL_PATH/index.cjs\""}
7171
7272
assert-package-without-build:
7373
name: Assert - Packaging runs when compilation is omitted

‎tests/source-package/.node-version‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24

‎tests/source-package/index.cjs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { answer: 42 };

‎tests/source-package/package-lock.json‎

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎tests/source-package/package.json‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "ci-source-package-fixture",
3+
"version": "1.0.0",
4+
"main": "index.cjs",
5+
"files": [
6+
"index.cjs"
7+
],
8+
"scripts": {
9+
"build": "node -e \"process.exit(1)\""
10+
}
11+
}

0 commit comments

Comments
 (0)