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
|
|
|
|
env:
|
|
|
|
NIX_PATH: "nixpkgs=https://github.com/NixOS/nixpkgs/archive/master.tar.gz"
|
|
|
|
steps:
|
2020-11-24 19:35:42 +01:00
|
|
|
- uses: cachix/install-nix-action@v12
|
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]
|
2020-07-01 10:10:49 +02:00
|
|
|
nixpkgs_version: ["20.03", "master"]
|
2020-04-08 16:39:06 +12:00
|
|
|
# os: [ubuntu-latest, macos-latest]
|
|
|
|
steps:
|
2020-11-24 19:36:11 +01:00
|
|
|
- uses: cachix/install-nix-action@v12
|
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 }}'
|
2020-07-01 10:27:28 +02:00
|
|
|
- run: nix-build --show-trace tests/default.nix
|
2020-11-24 19:41:00 +01:00
|
|
|
env:
|
|
|
|
NIX_PATH: "nixpkgs=https://github.com/NixOS/nixpkgs/archive/${{ matrix.nixpgs_version }}.tar.gz"
|