Updated ci.yml
This commit is contained in:
parent
986af3583c
commit
c427f8c320
1 changed files with 33 additions and 1 deletions
|
|
@ -1,2 +1,34 @@
|
|||
name: Haskell CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: self-hosted
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up GHC (Haskell)
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y haskell-platform cabal-install
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
cabal update
|
||||
cabal build --only-dependencies
|
||||
|
||||
- name: Build project
|
||||
run: cabal build
|
||||
|
||||
- name: Run tests
|
||||
run: cabal test
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue