purescript-httpurple/.github/workflows/check.yaml
Connor Prussin 2286472305
Use niv out of nixpkgs (#195)
* Use `niv` out of `nixpkgs`
* Update CI tests and add one for Nix formatting
2022-05-04 23:33:37 -07:00

81 lines
1.7 KiB
YAML

name: Check
on:
pull_request:
push:
branches:
- main
- "v[0-9]*.[0-9]*.x"
jobs:
Test:
runs-on: ubuntu-latest
steps:
- name: Check out codebase
uses: actions/checkout@v3
- 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_Purescript_Format:
runs-on: ubuntu-latest
steps:
- name: Check out codebase
uses: actions/checkout@v3
- 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-purescript
Validate_Nix_Format:
runs-on: ubuntu-latest
steps:
- name: Check out codebase
uses: actions/checkout@v3
- 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-nix
Validate_Pulp:
runs-on: ubuntu-latest
steps:
- name: Check out codebase
uses: actions/checkout@v3
- name: Install nix
uses: cachix/install-nix-action@v15
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
- name: Install environment
run: nix-shell
- name: Verify Pulp and bower
run: nix-shell --run check-pulp