Slack log update at Tue Aug 1 09:24:12 2023 #1198
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Verify | |
on: | |
pull_request: null | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-18.04, windows-2019] | |
ghc: ["8.10.4"] # stack.yamlのresolverに合わせて更新してください | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache .stack | |
id: cache-stack | |
uses: actions/[email protected] | |
with: | |
path: ~/.stack | |
key: ${{ runner.os }}-stack-${{ hashFiles('**/package.yaml') }}-${{ hashFiles('**/stack.yaml.lock') }} | |
restore-keys: | | |
${{ runner.os }}-stack- | |
- uses: haskell/actions/[email protected] | |
name: Setup Haskell | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
enable-stack: true | |
stack-version: 'latest' | |
- name: Install dependencies | |
run: stack --system-ghc test --only-dependencies | |
- name: Run test | |
run: stack --system-ghc test --pedantic |