Skip to content

CI: run tests

CI: run tests #9

name: "Quality Assurance"
on:
pull_request:
push:
jobs:
build_and_static_checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: nix-build
- uses: actions/upload-artifact@master
with:
name: libedid
path: ./result/
- run: nix-shell --run "./scripts/static_analysis.sh"
linuxhw_edid_coverage:
needs: build_and_static_checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@master
with:
name: libedid
path: ./result/
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: chmod +x ./result/bin/test-runner
- run: ./result/bin/test-runner
- name: Cache EDID DB
id: cache-edid-db
uses: actions/cache@v3
with:
path: linuxhw_edid
key: ${{ hashFiles('./scripts/linuxhw_download.sh') }}
- name: Download EDID DB
if: steps.cache-edid-db.outputs.cache-hit != 'true'
run: ./scripts/linuxhw_download.sh
- run: ls -lah ./result/bin
- name: Estimate EDID DB coverage
run: ./scripts/linuxhw_coverage.sh