beb4621f4b
* Update project setup to use spago. * Add license and repo info to spago.dhall * Fix check.yaml * Remove unused dependencies * Remove --no-install from checks.yaml * Minor cleanup * Readd nix checks * Migrate everything to spago & remove Makefile * Split nix environment install from build in workflow * Fix NIX_PATH * Make build step of workflow build everything * Fix github action Co-authored-by: sigma-andex <sigma.andex@pm.me>
49 lines
932 B
YAML
49 lines
932 B
YAML
name: Check
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
- 'v[0-9]*.[0-9]*.x'
|
|
|
|
jobs:
|
|
Test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Check out codebase
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install nix
|
|
uses: cachix/install-nix-action@v15
|
|
with:
|
|
nix_path: nixpkgs=channel:nixpkgs-unstable
|
|
|
|
- name: Install environment
|
|
run: nix-shell
|
|
|
|
- name: Build
|
|
run: nix-shell --run "build test"
|
|
|
|
- name: Test
|
|
run: nix-shell --run check-code
|
|
|
|
Validate_Format:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Check out codebase
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install nix
|
|
uses: cachix/install-nix-action@v15
|
|
with:
|
|
nix_path: nixpkgs=channel:nixpkgs-unstable
|
|
|
|
- name: Install environment
|
|
run: nix-shell
|
|
|
|
- name: Validate Format
|
|
run: nix-shell --run check-format
|