Force remote uninstall (2) #121
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
# Copied from https://github.com/kclejeune/system/blob/master/.github/workflows/build.yml. Modified. | |
name: 'system build' | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
continue-on-error: true | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: DeterminateSystems/nix-installer-action@v4 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- run: nix flake check | |
- name: Run Nix tests | |
run: | | |
cd tests/ | |
result=$(nix eval --impure --expr 'import ./ref-test.nix {}') | |
if [ "$result" != "[ ]" ]; then | |
echo "Test failed: Expected [], but got $result" | |
exit 1 | |
fi | |
shell: bash |