-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace travis CI with github actions (#51)
* Use github actions for basic testing * Remove travis * Use CPP * Run tests without fast * Add more stackage resolvers
- Loading branch information
Showing
5 changed files
with
82 additions
and
137 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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: Tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
name: CI | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
STACK_ROOT: ${{ github.workspace }}/.stack | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
stack-yaml: stack.yaml | ||
resolver: lts-21 | ||
- os: macos-latest | ||
stack-yaml: stack.yaml | ||
resolver: lts-21 | ||
- os: windows-latest | ||
stack-yaml: stack.yaml | ||
resolver: lts-21 | ||
- os: ubuntu-latest | ||
stack-yaml: stack.yaml | ||
resolver: lts-20 | ||
- os: macos-latest | ||
stack-yaml: stack.yaml | ||
resolver: lts-20 | ||
- os: windows-latest | ||
stack-yaml: stack.yaml | ||
resolver: lts-20 | ||
- os: ubuntu-latest | ||
stack-yaml: stack.yaml | ||
resolver: lts-19 | ||
- os: macos-latest | ||
stack-yaml: stack.yaml | ||
resolver: lts-19 | ||
- os: windows-latest | ||
stack-yaml: stack.yaml | ||
resolver: lts-19 | ||
|
||
steps: | ||
- name: Clone project | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: 'true' | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.stack | ||
${{ github.workspace }}/.stack | ||
key: ${{ runner.os }}-${{ matrix.resolver }}-haskell-${{ hashFiles('stack.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.resolver }}-haskell- | ||
- name: Build and run tests | ||
shell: bash | ||
run: | | ||
set -ex | ||
if [ "$RUNNER_OS" == "Linux" ] || [ "$RUNNER_OS" == "macOS" ]; then | ||
curl -sSL https://get.haskellstack.org/ | sh -s - -f | ||
fi | ||
stack test --no-terminal --stack-yaml=${{ matrix.stack-yaml }} --resolver=${{ matrix.resolver }} | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
generate_release_notes: true |
This file was deleted.
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
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
resolver: lts-11.3 | ||
#resolver: nightly-2017-11-23 | ||
resolver: lts-19.33 |
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