Skip to content

Added CI workflow #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .github/workflows/haskell-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
name: Haskell Test

on:
pull_request:
paths:
- bitcoin-scripting.cabal
- "src/**.hs"
- "test/**.hs"
- .github/workflows/haskell-test.yaml
types:
- synchronize
- opened
- reopened
- ready_for_review
push:
branches:
- master
paths:
- bitcoin-scripting.cabal
- "src/**.hs"
- "test/**.hs"
- .github/workflows/haskell-test.yaml
workflow_dispatch:
inputs: {}

jobs:
haskell-test:
if: github.event.pull_request.draft == false || github.ref == 'refs/heads/master'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-haskell-test
cancel-in-progress: true

permissions:
contents: read
packages: read
issues: read
checks: write

runs-on:
labels: ubuntu-22.04-16cores
container:
image: haskell:9.6.5
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: apt
run: |
apt update
apt install libsecp256k1-dev

- name: cabal build
run: |
cabal update
cabal build

- name: cabal test
run: |
cabal test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/dist-newstyle/
/cabal.project.local
/.stack-work
/TAGS
2 changes: 1 addition & 1 deletion bitcoin-scripting.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ category: Language
build-type: Simple
extra-source-files: CHANGELOG.md

tested-with: GHC == 8.10.4
tested-with: GHC ==9.6.5

common base
default-language: Haskell2010
Expand Down
Loading