Skip to content

Commit a8be5b1

Browse files
committed
Add a nightly build
1 parent 77148dc commit a8be5b1

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

.github/workflows/nightly.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Run tests on Stackage nightly
2+
3+
on:
4+
workflow_dispatch:
5+
# allow manual trigger
6+
7+
schedule:
8+
- cron: '33 3 * * *'
9+
# run daily
10+
11+
jobs:
12+
build:
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
resolver:
17+
- 'lts'
18+
- 'nightly'
19+
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
25+
- name: Cache stack dir
26+
uses: actions/cache@v3
27+
env:
28+
cache-name: cache-stack-dir
29+
with:
30+
path: ~/.stack
31+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.resolver }}-${{ hashFiles('*.cabal') }}
32+
restore-keys: |
33+
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.resolver }}-
34+
${{ runner.os }}-build-${{ env.cache-name }}-
35+
${{ runner.os }}-build-
36+
${{ runner.os }}-
37+
38+
- name: Build & Test
39+
run: stack test --haddock --no-terminal --resolver ${{ matrix.resolver }}

email-validate.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ test-suite Main
4444
build-depends:
4545
email-validate,
4646
base >= 4 && < 5,
47-
hspec >= 2.2.3 && < 2.10,
47+
hspec >= 2.2.3 && < 2.11,
4848
QuickCheck >= 2.4 && < 2.15,
4949
bytestring >= 0.9 && < 0.12
5050

0 commit comments

Comments
 (0)