forked from commercialhaskell/stack
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 807 Bytes
/
stan.yml
File metadata and controls
39 lines (31 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Apply stan
on:
pull_request:
workflow_dispatch:
jobs:
build:
name: Apply stan
runs-on: ubuntu-latest
steps:
- name: Clone project
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.stack
key: ${{ runner.os }}-${{ hashFiles('stack.yaml') }}
- name: Install stan
run: |
git clone https://github.com/kowainik/stan.git
cd stan
stack --local-bin-path ../.bin install
cd ..
- name: Generate .hie for analysis
run: stack build stack:lib
- name: Run stan
run: .bin/stan report --cabal-file-path=stack.cabal
- name: Upload HTML report
uses: actions/upload-artifact@v4
with:
name: Stan_report
path: stan.html