gomod2nix/.github/workflows/ci.yml

35 lines
775 B
YAML
Raw Normal View History

2020-07-24 10:16:51 +00:00
name: CI
on:
pull_request:
2022-05-20 06:48:28 +00:00
paths-ignore:
- '**.md'
2020-07-24 10:16:51 +00:00
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
2020-12-03 15:16:08 +00:00
- run: nix-shell --run 'make'