gomod2nix/.github/workflows/ci.yml
2020-12-03 16:23:39 +01:00

35 lines
797 B
YAML

name: CI
on:
pull_request:
push:
paths-ignore:
- '**.md'
jobs:
nixpkgs-fmt:
runs-on: ubuntu-latest
env:
NIX_PATH: "nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz"
steps:
- uses: cachix/install-nix-action@v12
- uses: actions/checkout@v1
- name: Check format
run: ./check-fmt
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
nixpkgs_version: ["master"]
# os: [ubuntu-latest, macos-latest]
env:
NIX_PATH: "nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz"
steps:
- uses: cachix/install-nix-action@v12
- uses: actions/checkout@v1
- uses: cachix/cachix-action@v8
with:
name: gomod2nix
- run: make