mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-05-12 14:07:52 +02:00
26 lines
665 B
YAML
26 lines
665 B
YAML
# 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
|