on master help sign in
Switch to Github Actions
commitedeade3a2102b56886fc80180196c667398a3da6 authorMichael Snoyman <michael@snoyman.com> dateThu 7 May 2020, 10:59 (6 years ago) parentbacf680
5 files changed+44−114
.azure/azure-linux-template.yml−29 .azure/azure-osx-template.yml−27 .azure/azure-pipelines.yml−30 .azure/azure-windows-template.yml−28 .github/workflows/tests.yml+44
.azure/azure-linux-template.ymldeleted−29
@@ -1,29 +0,0 @@
1−jobs:
2−- job: ${{ parameters.name }}
3− timeoutInMinutes: 180
4− pool:
5− vmImage: ${{ parameters.vmImage }}
6− strategy:
7− matrix:
8− GHC 8.0:
9− ARGS: "--resolver lts-9"
10− GHC 8.2:
11− ARGS: "--resolver lts-11"
12− GHC 8.4:
13− ARGS: "--resolver lts-12"
14− GHC 8.6:
15− ARGS: "--resolver lts-14"
16− GHC 8.8:
17− ARGS: "--resolver lts-15"
18− nightly:
19− ARGS: "--resolver nightly"
20− steps:
21− - script: |
22− export STACK_ROOT="$(Build.SourcesDirectory)"/.stack-root;
23− export PATH=$HOME/.local/bin:$PATH
24− mkdir -p ~/.local/bin
25− curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
26− stack $ARGS test --bench --no-run-benchmarks --haddock --no-haddock-deps
27− env:
28− OS_NAME: ${{ parameters.os }}
29− displayName: 'Build and test'
.azure/azure-osx-template.ymldeleted−27
@@ -1,27 +0,0 @@
1−jobs:
2−- job: ${{ parameters.name }}
3− timeoutInMinutes: 120
4− pool:
5− vmImage: ${{ parameters.vmImage }}
6− strategy:
7− matrix:
8− GHC 8.2:
9− ARGS: "--resolver lts-11"
10− GHC 8.4:
11− ARGS: "--resolver lts-12"
12− GHC 8.6:
13− ARGS: "--resolver lts-14"
14− GHC 8.8:
15− ARGS: "--resolver lts-15"
16− nightly:
17− ARGS: "--resolver nightly"
18− steps:
19− - script: |
20− export PATH=$HOME/.local/bin:$PATH
21− export STACK_ROOT="$(Build.SourcesDirectory)"/.stack-root;
22− mkdir -p ~/.local/bin
23− curl -skL https://get.haskellstack.org/stable/osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin;
24− stack $ARGS test --bench --no-run-benchmarks --haddock --no-haddock-deps
25− env:
26− OS_NAME: ${{ parameters.os }}
27− displayName: 'Build and test'
.azure/azure-pipelines.ymldeleted−30
@@ -1,30 +0,0 @@
1−# This is the complex Azure configuration, which is intended for use
2−# on open source libraries which need compatibility across multiple GHC
3−# versions, must work with cabal-install, and should be
4−# cross-platform. For more information and other options, see:
5−#
6−# https://docs.haskellstack.org/en/stable/azure_ci/
7−#
8−# Copy these contents into the root directory of your Github project in a file
9−# named azure-pipelines.yml
10−#
11−# For better organization, you split various jobs into seprate parts
12−# and each of them are controlled via individual file.
13−jobs:
14−- template: azure-linux-template.yml
15− parameters:
16− name: Linux
17− vmImage: ubuntu-latest
18− os: linux
19−
20−- template: azure-osx-template.yml
21− parameters:
22− name: macOS
23− vmImage: macOS-latest
24− os: osx
25−
26−- template: azure-windows-template.yml
27− parameters:
28− name: Windows
29− vmImage: windows-latest
30− os: windows
.azure/azure-windows-template.ymldeleted−28
@@ -1,28 +0,0 @@
1−jobs:
2−- job: ${{ parameters.name }}
3− timeoutInMinutes: 120
4− pool:
5− vmImage: ${{ parameters.vmImage }}
6− strategy:
7− matrix:
8− GHC 8.0:
9− ARGS: "--resolver lts-9"
10− GHC 8.2:
11− ARGS: "--resolver lts-11"
12− GHC 8.4:
13− ARGS: "--resolver lts-12"
14− GHC 8.6:
15− ARGS: "--resolver lts-14"
16− GHC 8.8:
17− ARGS: "--resolver lts-15"
18− nightly:
19− ARGS: "--resolver nightly"
20− steps:
21− - bash: |
22− export STACK_ROOT="$(Build.SourcesDirectory)"/.stack-root;
23− curl -sSkL http://www.stackage.org/stack/windows-x86_64 -o /usr/bin/stack.zip
24− unzip -o /usr/bin/stack.zip -d /usr/bin/
25− stack $ARGS test --bench --no-run-benchmarks
26− env:
27− OS_NAME: ${{ parameters.os }}
28− displayName: 'Build and test'
.github/workflows/tests.ymlnew file+44
@@ -0,0 +1,44 @@
1+name: Tests
2+
3+on:
4+ pull_request:
5+ push:
6+ branches:
7+ - master
8+
9+jobs:
10+ build:
11+ name: CI
12+ runs-on: ${{ matrix.os }}
13+ strategy:
14+ fail-fast: false
15+ matrix:
16+ os: [ubuntu-latest, macos-latest, windows-latest]
17+ resolver: [nightly, lts-15, lts-14, lts-12, lts-11, lts-9]
18+ # Bugs in GHC make it crash too often to be worth running
19+ exclude:
20+ - os: macos-latest
21+ resolver: lts-9
22+ - os: windows-latest
23+ resolver: lts-15
24+ - os: windows-latest
25+ resolver: nightly
26+
27+ steps:
28+ - name: Clone project
29+ uses: actions/checkout@v2
30+
31+ - name: Cache dependencies
32+ uses: actions/cache@v1
33+ with:
34+ path: ~/.stack
35+ key: ${{ runner.os }}-${{ matrix.resolver }}-${{ hashFiles('stack.yaml') }}
36+ restore-keys: |
37+ ${{ runner.os }}-${{ matrix.resolver }}-
38+
39+ - name: Build and run tests
40+ shell: bash
41+ run: |
42+ set -ex
43+ curl -sSL https://get.haskellstack.org/ | sh -s - -f
44+ stack test --bench --no-run-benchmarks --haddock --no-haddock-deps --no-terminal --resolver=${{ matrix.resolver }}