Skip to content

attempt

attempt #119

Workflow file for this run

name: test

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml: Expected stream end parse event
on:
push:
pull_request:
schedule:
- cron: '0 16 * * *' # UTC 16:00 daily
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# TODO: re-enable aarch64-linux once github has native runner
# https://github.com/orgs/community/discussions/19197
system: [x86_64-linux]
version:
- nixpkgs: nixos-24.11
home-manager: release-24.11
- nixpkgs: nixos-unstable
home-manager: master
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:${{ matrix.version.nixpkgs }}
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: >
nix flake update
--override-input quadlet-nix "path:$(pwd)"
--override-input nixpkgs 'github:NixOS/nixpkgs/${{ matrix.version.nixpkgs }}'
--override-input home-manager 'github:nix-community/home-manager/${{ matrix.version.home-manager }}'
--override-input test-config "path:$(pwd)/tests/${{ matrix.system }}"
--flake ./tests
- run: >
nix run github:Mic92/nix-fast-build
--skip-cached
--no-nom
--result-format junit
--result-file result.xml
--flake './tests#checks'
- name: Upload Test Report
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: result.xml
retention-days: 1
---
name: report
on:
workflow_run:
workflows: [ test ]
types: [ completed ]
permissions:
checks: write
jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1
with:
artifact: test-results
name: Reports
path: '*.xml'
reporter: java-junit