git.iko.soy/typeable/file-embed
on master help sign in
Switch to Github Actions
commit89c49704fc6bc5b43663222517f19a68a206bfe3 authorMichael Snoyman <michael@snoyman.com> dateSun 26 Apr 2020, 10:31 (6 years ago) parent739cef9
5 files changed+33−139
.azure/azure-linux-template.yml−38 .azure/azure-osx-template.yml−38 .azure/azure-pipelines.yml−30 .azure/azure-windows-template.yml−33 .github/workflows/tests.yml+33
.azure/azure-linux-template.ymldeleted−38
@@ -1,38 +0,0 @@
1−jobs:
2−- job: ${{ parameters.name }}
3− timeoutInMinutes: 180
4− pool:
5− vmImage: ${{ parameters.vmImage }}
6− strategy:
7− matrix:
8− stack-lts-9:
9− BUILD: stack
10− STACK_YAML: stack.yaml
11− ARGS: "--resolver lts-9"
12− stack-lts-11:
13− BUILD: stack
14− STACK_YAML: stack.yaml
15− ARGS: "--resolver lts-11"
16− stack-lts-12:
17− BUILD: stack
18− STACK_YAML: stack.yaml
19− ARGS: "--resolver lts-12"
20− stack-lts-14:
21− BUILD: stack
22− STACK_YAML: stack.yaml
23− ARGS: "--resolver lts-14"
24− nightly:
25− BUILD: stack
26− STACK_YAML: stack.yaml
27− ARGS: "--resolver nightly"
28− maxParallel: 6
29− steps:
30− - script: |
31− export STACK_ROOT="$(Build.SourcesDirectory)"/.stack-root;
32− export PATH=$HOME/.local/bin:$PATH
33− mkdir -p ~/.local/bin
34− curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
35− stack $ARGS test --bench --no-run-benchmarks --haddock --no-haddock-deps
36− env:
37− OS_NAME: ${{ parameters.os }}
38− displayName: 'Build and test'
.azure/azure-osx-template.ymldeleted−38
@@ -1,38 +0,0 @@
1−jobs:
2−- job: ${{ parameters.name }}
3− timeoutInMinutes: 120
4− pool:
5− vmImage: ${{ parameters.vmImage }}
6− strategy:
7− matrix:
8− stack-lts-9:
9− BUILD: stack
10− STACK_YAML: stack.yaml
11− ARGS: "--resolver lts-9"
12− stack-lts-11:
13− BUILD: stack
14− STACK_YAML: stack.yaml
15− ARGS: "--resolver lts-11"
16− stack-lts-12:
17− BUILD: stack
18− STACK_YAML: stack.yaml
19− ARGS: "--resolver lts-12"
20− stack-lts-14:
21− BUILD: stack
22− STACK_YAML: stack.yaml
23− ARGS: "--resolver lts-14"
24− stack-nightly:
25− BUILD: stack
26− STACK_YAML: stack.yaml
27− ARGS: "--resolver nightly"
28− maxParallel: 3
29− steps:
30− - script: |
31− export PATH=$HOME/.local/bin:$PATH
32− export STACK_ROOT="$(Build.SourcesDirectory)"/.stack-root;
33− mkdir -p ~/.local/bin
34− curl -skL https://get.haskellstack.org/stable/osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin;
35− stack $ARGS test --bench --no-run-benchmarks --haddock --no-haddock-deps
36− env:
37− OS_NAME: ${{ parameters.os }}
38− 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-16.04
18− os: linux
19−
20−- template: azure-osx-template.yml
21− parameters:
22− name: macOS
23− vmImage: macOS-10.13
24− os: osx
25−
26−- template: azure-windows-template.yml
27− parameters:
28− name: Windows
29− vmImage: vs2017-win2016
30− os: windows
.azure/azure-windows-template.ymldeleted−33
@@ -1,33 +0,0 @@
1−jobs:
2−- job: ${{ parameters.name }}
3− timeoutInMinutes: 120
4− pool:
5− vmImage: ${{ parameters.vmImage }}
6− strategy:
7− matrix:
8− stack-lts-11:
9− BUILD: stack
10− STACK_YAML: stack.yaml
11− ARGS: "--resolver lts-11"
12− stack-lts-12:
13− BUILD: stack
14− STACK_YAML: stack.yaml
15− ARGS: "--resolver lts-12"
16− stack-lts-14:
17− BUILD: stack
18− STACK_YAML: stack.yaml
19− ARGS: "--resolver lts-14"
20− stack-nightly:
21− BUILD: stack
22− STACK_YAML: stack.yaml
23− ARGS: "--resolver nightly"
24− maxParallel: 3
25− steps:
26− - bash: |
27− export STACK_ROOT="$(Build.SourcesDirectory)"/.stack-root;
28− curl -sSkL http://www.stackage.org/stack/windows-x86_64 -o /usr/bin/stack.zip
29− unzip -o /usr/bin/stack.zip -d /usr/bin/
30− stack $ARGS test --bench --no-run-benchmarks
31− env:
32− OS_NAME: ${{ parameters.os }}
33− displayName: 'Build and test'
.github/workflows/tests.ymlnew file+33
@@ -0,0 +1,33 @@
1+name: Tests
2+
3+on: [pull_request, push]
4+
5+jobs:
6+ build:
7+ name: CI
8+ runs-on: ubuntu-latest
9+ strategy:
10+ fail-fast: false
11+ matrix:
12+ os: [ubuntu-latest, macos-latest, windows-latest]
13+ resolver: [nightly, lts-15, lts-14, lts-12, lts-11, lts-9]
14+
15+ steps:
16+ - name: Setup Stack
17+ uses: mstksg/setup-stack@v1
18+
19+ - name: Clone project
20+ uses: actions/checkout@v2
21+
22+ - name: Cache dependencies
23+ uses: actions/cache@v1
24+ with:
25+ path: ~/.stack
26+ key: ${{ runner.os }}-${{ matrix.resolver }}-${{ hashFiles('stack.yaml') }}
27+ restore-keys: |
28+ ${{ runner.os }}-${{ matrix.resolver }}-
29+
30+ - name: Build and run tests
31+ run: |
32+ set -ex
33+ stack test --fast --no-terminal --resolver=${{ matrix.resolver }}