Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sereja313 committed Aug 10, 2023
1 parent 9a83c89 commit ac386bb
Show file tree
Hide file tree
Showing 32 changed files with 857 additions and 161 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
- name: xrefcheck
run: nix run github:serokell/xrefcheck

- name: reuse
run: nix build -L .#checks.x86_64-linux.reuse-lint
# Run step even if the previous one has failed
if: success() || failure()
# - name: reuse
# run: nix build -L .#checks.x86_64-linux.reuse-lint
# # Run step even if the previous one has failed
# if: success() || failure()

- name: hlint
run: nix build -L .#checks.x86_64-linux.hlint
Expand All @@ -26,9 +26,9 @@ jobs:
run: nix build -L .#checks.x86_64-linux.stylish-haskell
if: success() || failure()

- name: check-trailing-whitespace
run: nix build -L .#checks.x86_64-linux.trailing-whitespace
if: success() || failure()
# - name: check-trailing-whitespace
# run: nix build -L .#checks.x86_64-linux.trailing-whitespace
# if: success() || failure()

- name: check-hpack
run: nix build -L .#checks.x86_64-linux.hpack
Expand All @@ -43,11 +43,11 @@ jobs:
- uses: actions/checkout@v3

- id: set-matrix
run: echo "matrix=$(nix eval --json .#ghc-matrix.x86_64-linux)" >> $GITHUB_OUTPUT
run: echo "matrix=$(nix eval --json .#build-matrix.x86_64-linux)" >> $GITHUB_OUTPUT

build-and-test:
needs: ghc-versions
name: ghc${{ matrix.ghc }}
name: ${{ matrix.prefix }}
runs-on: [self-hosted, nix]
strategy:
fail-fast: false
Expand All @@ -57,8 +57,8 @@ jobs:
- uses: actions/checkout@v3

- name: build
run: nix build -L .#checks.x86_64-linux.ghc${{ matrix.ghc }}:build-all --keep-going
run: nix build -L .#checks.x86_64-linux.${{ matrix.prefix }}:build-all --keep-going

- name: test
run: nix build -L .#checks.x86_64-linux.ghc${{ matrix.ghc }}:test-all --keep-going
run: nix build -L .#checks.x86_64-linux.${{ matrix.prefix }}:test-all --keep-going
if: success() || failure()
3 changes: 3 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
packages:
./with-utf8/
./test-package/
Loading

0 comments on commit ac386bb

Please sign in to comment.