This commit is contained in:
Stéphan Kochen
2022-09-13 08:07:12 +02:00
parent 7475aff6e0
commit 076bd9b2b7
+15
View File
@@ -64,12 +64,27 @@ jobs:
name: stephank
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
run: yarn
- name: Test nix-build
run: nix-build
- name: Test bin
run: ./result/bin/hello
# TODO: Check there really is a separate derivation,
# and that Yarn actually reuses the build.
- name: Test isolated builds