Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Added a CI pipeline based on Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentRDC committed Apr 2, 2024
1 parent 4ce6722 commit 5401e2a
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 27 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Continuous Integration

on: [push, pull_request]

jobs:
continuous-integration:
strategy:
matrix:
ghc-version:
- "9.0.2"
- "9.2.8"
- "9.4.5"
- "9.6.4"
- "9.8.2"

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install cabal/ghc
uses: haskell-actions/setup@v2
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc-version }}
cabal-version: '3.10.3.0'

- name: Generate freeze file
run: |
cabal update
cabal configure --disable-optimization
cabal freeze
# 'cabal freeze' will use the nearest index state which might not be exactly equal
# to the index state specified in 'cabal.project'
sed '/^index-state: /d' cabal.project.freeze > dependencies-versions
- name: Cache cabal work
uses: actions/cache@v4
with:
path: |
dist-newstyle
${{ steps.setup-haskell.outputs.cabal-store }}
# We are using the hash of 'cabal.project.local' so that different levels
# of optimizations are cached separately
key: ${{ runner.os }}-${{ hashFiles('dependencies-versions', 'cabal.project', 'cabal.project.local') }}-cabal-install

- name: Build dependencies only
run: |
cabal build --enable-tests --only-dependencies
- name: Build this package
run: |
cabal build --enable-tests
- name: Run tests
run: |
cabal test
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# network-transport-inmemory
[![travis](https://secure.travis-ci.org/haskell-distributed/network-transport-inmemory.svg)](http://travis-ci.org/haskell-distributed/network-transport-inmemory)
[![Release](https://img.shields.io/hackage/v/network-transport-inmemory.svg)](http://hackage.haskell.org/package/network-transport-inmemory)

network-transport-inmemory is a transport for local
Expand Down
4 changes: 4 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
packages: *.cabal

test-show-details: streaming
tests: True
2 changes: 1 addition & 1 deletion network-transport-inmemory.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Description: This is a transport implementation that could be used for local
communication. All endpoints that want to comminicate should be
created using the same transport.

Tested-With: GHC==7.4.1 GHC==7.4.2 GHC==7.8.3 GHC==7.10
Tested-With: GHC==9.0.2 GHC==9.2.8 GHC==9.4.5 GHC==9.6.4 GHC==9.8.2
Category: Network
extra-source-files: ChangeLog

Expand Down

0 comments on commit 5401e2a

Please sign in to comment.