-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from commercialhaskell/stam
Add Stan to CI
- Loading branch information
Showing
3 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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@v3 | ||
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 pantry:lib | ||
|
||
- name: Run stan | ||
run: .bin/stan report --cabal-file-path=pantry.cabal | ||
|
||
- name: Upload HTML report | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Stan_report | ||
path: stan.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters