mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-07-01 03:05:41 +02:00
Run stack-test regularly to keep cache warm
This commit is contained in:
parent
e84c1a82be
commit
e9456a0e30
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@ -9,25 +9,7 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
stack-test:
|
stack-test:
|
||||||
name: stack test
|
uses: ./.github/workflows/stack-test.yml
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: haskell/ghcup-setup@v1
|
|
||||||
id: ghcup
|
|
||||||
with:
|
|
||||||
stack-hook: true
|
|
||||||
- uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
${{ steps.ghcup.outputs.basedir }}
|
|
||||||
~/.stack
|
|
||||||
key: stack-${{ runner.os }}-${{ hashFiles('stack.yaml') }}
|
|
||||||
restore-keys: |
|
|
||||||
stack-${{ runner.os }}-
|
|
||||||
${{ runner.os }}-
|
|
||||||
- run: ghcup install stack
|
|
||||||
- run: stack test
|
|
||||||
|
|
||||||
flake-no-push:
|
flake-no-push:
|
||||||
name: flake check (no push)
|
name: flake check (no push)
|
||||||
|
|||||||
9
.github/workflows/cache-warmup.yaml
vendored
Normal file
9
.github/workflows/cache-warmup.yaml
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
name: biweekly cache warmup
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
# Every Monday and Thursday at 11:23 UTC
|
||||||
|
- cron: '23 11 * * mon,thu'
|
||||||
|
workflow_dispatch:
|
||||||
|
jobs:
|
||||||
|
stack-test:
|
||||||
|
uses: ./.github/workflows/stack-test.yml
|
||||||
25
.github/workflows/stack-test.yml
vendored
Normal file
25
.github/workflows/stack-test.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# Reusable workflow used by the others. Not called directly usually.
|
||||||
|
name: stack test
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
jobs:
|
||||||
|
stack-test:
|
||||||
|
name: stack test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: haskell/ghcup-setup@v1
|
||||||
|
id: ghcup
|
||||||
|
with:
|
||||||
|
stack-hook: true
|
||||||
|
- uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
${{ steps.ghcup.outputs.basedir }}
|
||||||
|
~/.stack
|
||||||
|
key: stack-${{ runner.os }}-${{ hashFiles('stack.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
stack-${{ runner.os }}-
|
||||||
|
${{ runner.os }}-
|
||||||
|
- run: ghcup install stack
|
||||||
|
- run: stack test
|
||||||
Loading…
Reference in New Issue
Block a user