Skip to content

Commit

Permalink
Comment building and running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KubEF committed Mar 17, 2024
1 parent db54d75 commit 48de6c3
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,36 @@ name: CI (Stack)
on: [push, pull_request]

jobs:
test_with_stack:
name: Testing with Stack-${{ matrix.stack }}, on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
stack: ["2.9.3"]
# test_with_stack:
# name: Testing with Stack-${{ matrix.stack }}, on ${{ matrix.os }}
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest]
# stack: ["2.9.3"]

steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
ghc-version: ${{ matrix.ghc }}
stack-version: ${{ matrix.stack }}
- name: Cache (Unix platform)
uses: actions/cache@v2
with:
path: ~/.stack
key: stack-cache-${{ runner.os }}-${{ hashFiles('stack.yaml.lock') }}-${{ hashFiles('stack.yaml') }}
restore-keys: |
stack-cache-${{ runner.os }}-${{ hashFiles('stack.yaml.lock') }}
stack-cache-${{ runner.os }}
- name: Install dependencies
run: |
stack update
stack build --system-ghc --only-dependencies --test --bench --no-run-tests --no-run-benchmarks
- name: Build
run: stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
- name: Run tests
run: stack test
# steps:
# - uses: actions/checkout@v2
# - uses: actions/[email protected]
# with:
# ghc-version: ${{ matrix.ghc }}
# stack-version: ${{ matrix.stack }}
# - name: Cache (Unix platform)
# uses: actions/cache@v2
# with:
# path: ~/.stack
# key: stack-cache-${{ runner.os }}-${{ hashFiles('stack.yaml.lock') }}-${{ hashFiles('stack.yaml') }}
# restore-keys: |
# stack-cache-${{ runner.os }}-${{ hashFiles('stack.yaml.lock') }}
# stack-cache-${{ runner.os }}
# - name: Install dependencies
# run: |
# stack update
# stack build --system-ghc --only-dependencies --test --bench --no-run-tests --no-run-benchmarks
# - name: Build
# run: stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
# - name: Run tests
# run: stack test
hlint:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 48de6c3

Please sign in to comment.