2021-03-22 19:20:17 +00:00
|
|
|
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
|
2021-11-13 07:46:59 +00:00
|
|
|
uses: cachix/install-nix-action@v15
|
2021-03-22 19:20:17 +00:00
|
|
|
with:
|
2021-11-13 07:46:59 +00:00
|
|
|
nix_path: nixpkgs=channel:nixpkgs-unstable
|
|
|
|
|
|
|
|
- name: Install environment
|
|
|
|
run: nix-shell
|
2021-03-22 19:20:17 +00:00
|
|
|
|
|
|
|
- name: Build
|
2021-11-13 07:46:59 +00:00
|
|
|
run: nix-shell --run "build test"
|
2021-03-22 19:20:17 +00:00
|
|
|
|
|
|
|
- name: Test
|
2021-11-13 07:46:59 +00:00
|
|
|
run: nix-shell --run check-code
|
2021-03-22 19:20:17 +00:00
|
|
|
|
|
|
|
Validate_Format:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Check out codebase
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install nix
|
2021-11-13 07:46:59 +00:00
|
|
|
uses: cachix/install-nix-action@v15
|
2021-03-22 19:20:17 +00:00
|
|
|
with:
|
2021-11-13 07:46:59 +00:00
|
|
|
nix_path: nixpkgs=channel:nixpkgs-unstable
|
|
|
|
|
|
|
|
- name: Install environment
|
|
|
|
run: nix-shell
|
2021-03-22 19:20:17 +00:00
|
|
|
|
|
|
|
- name: Validate Format
|
2021-11-13 07:46:59 +00:00
|
|
|
run: nix-shell --run check-format
|