-
Notifications
You must be signed in to change notification settings - Fork 56
38 lines (34 loc) · 1.68 KB
/
Copy pathtutorials.yml
File metadata and controls
38 lines (34 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Tutorial examples
on:
push:
paths: ['Spock/**', 'Spock-core/**', 'reroute/**', 'cabal.project', 'stack.yaml', 'docs/tutorials/**', 'docs/_includes/**', 'examples/cookbook/**', 'examples/rest-api/**', 'scripts/*tutorial*', 'cabal.project.tutorials', 'stack-tutorials.yaml', 'stack-tutorials.yaml.lock', '.github/workflows/tutorials.yml']
pull_request:
paths: ['Spock/**', 'Spock-core/**', 'reroute/**', 'cabal.project', 'stack.yaml', 'docs/tutorials/**', 'docs/_includes/**', 'examples/cookbook/**', 'examples/rest-api/**', 'scripts/*tutorial*', 'cabal.project.tutorials', 'stack-tutorials.yaml', 'stack-tutorials.yaml.lock', '.github/workflows/tutorials.yml']
permissions:
contents: read
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: haskell-actions/setup@v2
with:
ghc-version: '9.14.1'
enable-stack: true
stack-version: '3.11.1'
- run: python3 scripts/check-tutorial-setup.py
database:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: haskell-actions/setup@v2
with:
ghc-version: '9.14.1'
cabal-version: '3.18.1.0'
cabal-update: false
enable-stack: true
stack-version: '3.11.1'
- run: cabal update
- run: cabal build spock-rest-example --project-file=cabal.project.tutorials --builddir=dist-newstyle-tutorials
- run: cabal test spock-rest-example --project-file=cabal.project.tutorials --builddir=dist-newstyle-tutorials --test-show-details=direct
- run: stack test spock-rest-example --stack-yaml stack-tutorials.yaml --system-ghc --no-install-ghc --lock-file=error-on-write