on master help sign in
Added policeman
commita43024d084b33b76e64d78193140cbd3d8ccd61d authoriko <ilyakooo0@gmail.com> dateTue 28 Dec 2021, 20:46 (5 years ago) parent3ad9d5f
3 files changed+36
.github/workflows/github-actions-image.yaml+27 ci/policeman.nix+4 policeman.json+5
.github/workflows/github-actions-image.yaml+27
@@ -9,9 +9,36 @@ on:
99 types: [prereleased]
1010
1111jobs:
12+ policeman:
13+ runs-on: ubuntu-latest
14+ steps:
15+ - uses: actions/checkout@v2
16+ with:
17+ submodules: recursive
18+
19+ - name: Common setup
20+ uses: ./.github/actions/common_setup
21+ with:
22+ authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
23+
24+ - name: Run policeman
25+ run: |
26+ jq --argjson msg $($(nix-build ci/policeman.nix)/bin/policeman | jq -aRs .) ".[0].message = \$msg" <policeman.json >message.json
27+ cat message.json
28+
29+ - name: Post notice
30+ uses: yuzutech/annotations-action@v0.4.0
31+ with:
32+ repo-token: "${{ secrets.GITHUB_TOKEN }}"
33+ input: "./message.json"
34+
1235 check_versions:
1336 runs-on: ubuntu-latest
1437 steps:
38+ - uses: actions/checkout@v2
39+ with:
40+ submodules: recursive
41+
1542 - name: Check library version
1643 if: github.event_name == 'release'
1744 run: |
ci/policeman.nixnew file+4
@@ -0,0 +1,4 @@
1+{ sources ? import ../nix/sources.nix
2+, pkgs ? import sources.nixpkgs { }
3+}:
4+pkgs.haskellPackages.policeman
policeman.jsonnew file+5
@@ -0,0 +1,5 @@
1+[{
2+ "file": "compaREST.cabal",
3+ "title": "👮 Policeman",
4+ "annotation_level": "notice"
5+}]