Updated ci.yml
This commit is contained in:
parent
f1cb583d0f
commit
20c78cf015
1 changed files with 33 additions and 1 deletions
|
|
@ -1,2 +1,34 @@
|
||||||
runs-on: self-hosted
|
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