Add code formatting with purty (#171)
* Add code formatting with purty * Purtify code
This commit is contained in:
2
.github/workflows/test.yaml
vendored
2
.github/workflows/test.yaml
vendored
@@ -21,4 +21,4 @@ jobs:
|
||||
run: nix-shell --run 'make build'
|
||||
|
||||
- name: Test
|
||||
run: nix-shell --run 'make test'
|
||||
run: nix-shell --run 'make test-code'
|
||||
|
||||
24
.github/workflows/validate-formatting.yaml
vendored
Normal file
24
.github/workflows/validate-formatting.yaml
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
name: Validate Formatting
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Check out codebase
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install nix
|
||||
uses: cachix/install-nix-action@v12
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-20.09
|
||||
|
||||
- name: Build
|
||||
run: nix-shell --run 'make build'
|
||||
|
||||
- name: Test
|
||||
run: nix-shell --run 'make test-format'
|
||||
Reference in New Issue
Block a user