-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow more ghc versions in CI (#330)
* Allow more ghc versions in CI * Is ghc 8.10.7 on the path? * Refactor tests handle missing tool dependencies * Make CI run all tests regardless of the installed tool * Splitup test runners * Always show test-details when running tests in CI * Split cabal tests into bios, direct and cabal tests
- Loading branch information
Showing
7 changed files
with
263 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,12 +23,23 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- id: extra-ghc | ||
uses: haskell/actions/setup@v1 | ||
with: | ||
ghc-version: '8.10.7' | ||
|
||
- uses: haskell/actions/setup@v1 | ||
with: | ||
ghc-version: ${{ matrix.ghc }} | ||
cabal-version: '3.6' | ||
enable-stack: true | ||
|
||
- name: Print extra ghc version | ||
run: ghc-8.10.7 --version | ||
|
||
- name: Print normal ghc version | ||
run: ghc --version | ||
|
||
- name: Cache Cabal | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -38,8 +49,11 @@ jobs: | |
- run: cabal update | ||
- name: Build | ||
run: cabal build | ||
- name: Test | ||
run: cabal test | ||
- name: Test Parser | ||
run: cabal test parser-tests --test-show-details=direct | ||
- name: Test Bios | ||
# Run all tests in the project | ||
run: cabal test bios-tests --test-show-details=direct --test-options="--ignore-tool-deps" | ||
|
||
sdist: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cabal-version: 2.4 | ||
name: cabal-with-ghc | ||
version: 0.1.0.0 | ||
|
||
library | ||
exposed-modules: MyLib | ||
build-depends: base | ||
hs-source-dirs: src | ||
default-language: Haskell2010 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
packages: . | ||
|
||
-- It is intended that this ghc version is different to at least one ghc version | ||
-- that is tested in CI. | ||
-- | ||
-- Project validates that hie-bios honours this field. | ||
-- | ||
-- If you change this, make sure to also change the 'extraGhc' constant in | ||
-- 'tests/BiosTests.hs'. | ||
-- | ||
-- Additionally, CI needs a proper setup to execute this test-case. | ||
with-compiler: ghc-8.10.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cradle: | ||
cabal: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module MyLib (someFunc) where | ||
|
||
someFunc :: IO () | ||
someFunc = putStrLn "someFunc" |