Test bin
This commit is contained in:
@@ -64,12 +64,27 @@ jobs:
|
|||||||
name: stephank
|
name: stephank
|
||||||
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
|
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
|
||||||
|
|
||||||
|
- name: Add bin
|
||||||
|
run: |
|
||||||
|
cat > hello.js << EOF
|
||||||
|
#!/usr/bin/env node
|
||||||
|
require('webpack')
|
||||||
|
console.log('Hello nixify!')
|
||||||
|
EOF
|
||||||
|
chmod a+x hello.js
|
||||||
|
|
||||||
|
jq '.bin = { hello: "./hello.js" }' package.json > new
|
||||||
|
mv new package.json
|
||||||
|
|
||||||
- name: Test with Nix
|
- name: Test with Nix
|
||||||
run: yarn
|
run: yarn
|
||||||
|
|
||||||
- name: Test nix-build
|
- name: Test nix-build
|
||||||
run: nix-build
|
run: nix-build
|
||||||
|
|
||||||
|
- name: Test bin
|
||||||
|
run: ./result/bin/hello
|
||||||
|
|
||||||
# TODO: Check there really is a separate derivation,
|
# TODO: Check there really is a separate derivation,
|
||||||
# and that Yarn actually reuses the build.
|
# and that Yarn actually reuses the build.
|
||||||
- name: Test isolated builds
|
- name: Test isolated builds
|
||||||
|
|||||||
Reference in New Issue
Block a user