Skip to content

CI/Nix: add test job #23

CI/Nix: add test job

CI/Nix: add test job #23

Workflow file for this run

name: Nix (CI)
on: [push, pull_request, workflow_dispatch]
jobs:
update-inputs:
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
uses: ./.github/workflows/nix-update-inputs.yml
secrets: inherit
build:
if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork)
uses: ./.github/workflows/nix-build.yml
secrets: inherit
test:
if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork)
needs: build
name: Test
runs-on: ubuntu-latest
steps:
- uses: DeterminateSystems/nix-installer-action@main
# TODO: run a proper testing command
- run: nix build 'github:hyprwm/Hyprland?ref=${{ github.ref }}#checks.x86_64-linux.xeyes' -L --extra-substituters "https://hyprland.cachix.org"