ci: test build with nix #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: "Test" | |
on: | |
pull_request: | |
push: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: install Nix | |
uses: cachix/install-nix-action@v27 | |
- name: test | |
run: | | |
nix develop --ignore-environment --keep MY_ENV_VAR --command ' | |
echo $MY_ENV_VAR && | |
echo "test-->test"' | |
env: | |
MY_ENV_VAR: foobar |