mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
Add Cachix to Github workflows
This commit is contained in:
parent
4b551ea711
commit
32dfe63d4d
1 changed files with 15 additions and 5 deletions
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
|
@ -7,6 +7,16 @@ on:
|
||||||
- '**.md'
|
- '**.md'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
nixpkgs-fmt:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
NIX_PATH: "nixpkgs=https://github.com/NixOS/nixpkgs/archive/master.tar.gz"
|
||||||
|
steps:
|
||||||
|
- uses: cachix/install-nix-action@v8
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Check format
|
||||||
|
run: ./check-fmt
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -14,13 +24,13 @@ jobs:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
nixpkgs_version: ["19.09", "master"]
|
nixpkgs_version: ["19.09", "master"]
|
||||||
# os: [ubuntu-latest, macos-latest]
|
# os: [ubuntu-latest, macos-latest]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
NIX_PATH: "nixpkgs=https://github.com/NixOS/nixpkgs/archive/${{ matrix.nixpgs_version }}.tar.gz"
|
NIX_PATH: "nixpkgs=https://github.com/NixOS/nixpkgs/archive/${{ matrix.nixpgs_version }}.tar.gz"
|
||||||
steps:
|
steps:
|
||||||
- uses: cachix/install-nix-action@v8
|
- uses: cachix/install-nix-action@v8
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Run tests
|
- uses: cachix/cachix-action@v5
|
||||||
run: nix-shell -p git --run "nix-build --no-out-link --show-trace tests"
|
with:
|
||||||
- name: Check format
|
name: poetry2nix
|
||||||
run: ./check-fmt
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||||
|
file: tests/default.nix
|
||||||
|
|
Loading…
Add table
Reference in a new issue