Merge pull request #1 from naidneelttil/main #37
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: CI | |
on: | |
push: | |
jobs: | |
nix-build-server: | |
name: Nix Build Examples | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v22 | |
- name: Build example from flake | |
run: nix build -L | |
- name: Assert example from flake has expected output | |
run: | | |
# Download the actual example file that we have downloaded with Nix. | |
curl 'https://raw.githubusercontent.com/cdepillabout/small-example-text-files/177c95e490cf44bcc42860bf0652203d3dc87900/hello-world.txt' > ./hello-world.txt | |
cmp ./hello-world.txt ./result |