From 887724370128d5a93b33879ea952b0a9bec17e11 Mon Sep 17 00:00:00 2001 From: "John J. Camilleri" Date: Fri, 13 Aug 2021 09:51:10 +0200 Subject: [PATCH] Add tests to CI --- .github/workflows/build-majestic.yml | 34 +++++++++++++++++++--------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-majestic.yml b/.github/workflows/build-majestic.yml index 9dca7b1ed..8f94a84df 100644 --- a/.github/workflows/build-majestic.yml +++ b/.github/workflows/build-majestic.yml @@ -11,20 +11,32 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Install build tools - run: | - sudo apt-get update - sudo apt-get install -y \ - autoconf \ - automake \ - autotools-dev \ - g++ \ - libtool \ - make + # All these are already available in GitHub runner + # - name: Install build tools + # run: | + # sudo apt-get update + # sudo apt-get install -y \ + # autoconf \ + # automake \ + # libtool \ + # make \ + # g++ - - name: Build package + - name: Build runtime working-directory: ./src/runtime/c run: | autoreconf -i ./configure make + make install + + - name: Setup Haskell + uses: haskell/actions/setup@v1 + # with: + # ghc-version: '8.6' + # cabal-version: '2.4.1.0' + + - name: Run testsuite + working-directory: ./src/runtime/haskell + run: | + cabal test