Added policeman

This commit is contained in:
iko 2021-12-28 20:46:35 +03:00
parent 3ad9d5f725
commit a43024d084
Signed by untrusted user: iko
GPG Key ID: 82C257048D1026F2
3 changed files with 36 additions and 0 deletions

View File

@ -9,9 +9,36 @@ on:
types: [prereleased]
jobs:
policeman:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Common setup
uses: ./.github/actions/common_setup
with:
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Run policeman
run: |
jq --argjson msg $($(nix-build ci/policeman.nix)/bin/policeman | jq -aRs .) ".[0].message = \$msg" <policeman.json >message.json
cat message.json
- name: Post notice
uses: yuzutech/annotations-action@v0.4.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
input: "./message.json"
check_versions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Check library version
if: github.event_name == 'release'
run: |

4
ci/policeman.nix Normal file
View File

@ -0,0 +1,4 @@
{ sources ? import ../nix/sources.nix
, pkgs ? import sources.nixpkgs { }
}:
pkgs.haskellPackages.policeman

5
policeman.json Normal file
View File

@ -0,0 +1,5 @@
[{
"file": "compaREST.cabal",
"title": "👮 Policeman",
"annotation_level": "notice"
}]