2020-04-08 16:39:06 +12:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
|
|
|
|
jobs:
|
2020-04-15 14:21:28 +01:00
|
|
|
nixpkgs-fmt:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-08-11 18:11:38 -05:00
|
|
|
- uses: cachix/install-nix-action@v13
|
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
2020-04-15 14:21:28 +01:00
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Check format
|
|
|
|
run: ./check-fmt
|
|
|
|
|
2020-04-08 16:39:06 +12:00
|
|
|
build:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
# os: [ubuntu-latest, macos-latest]
|
|
|
|
steps:
|
2021-08-11 18:11:38 -05:00
|
|
|
- uses: cachix/install-nix-action@v13
|
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
2020-04-08 16:39:06 +12:00
|
|
|
- uses: actions/checkout@v1
|
2020-11-24 19:37:14 +01:00
|
|
|
- uses: cachix/cachix-action@v8
|
2020-04-15 14:21:28 +01:00
|
|
|
with:
|
|
|
|
name: poetry2nix
|
|
|
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
2021-08-11 18:11:38 -05:00
|
|
|
- run: nix-shell -p nix-build-uncached --run 'nix-build-uncached --keep-going --show-trace tests/default.nix'
|