42bf4475e0
* Update shell and packages * Fix code for 0.15 * Fix tests * Format * Add check-pulp command * Generate bowerfile * Add check-pulp to CI * Add nixfmt to formatting * Fixup test helpers * Take 2 * PR comments (#1) * Nix cleanup from PR * Use arrows functions * Remove unnecessary step Co-authored-by: Connor Prussin <connor@prussin.net>
64 lines
1.3 KiB
YAML
64 lines
1.3 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@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
|
|
|
|
Validate_Pulp:
|
|
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: Verify Pulp and bower
|
|
run: nix-shell --run check-pulp
|