Skip to content

Commit

Permalink
Updating GitHub actions [4]
Browse files Browse the repository at this point in the history
  • Loading branch information
recursion-ninja committed Aug 28, 2024
1 parent 73df02d commit 69e159b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 21 deletions.
51 changes: 31 additions & 20 deletions .github/workflows/integration-test-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ on:
branches: [ main, github-ci ]


# INFO: The following configuration block ensures that only one build runs per branch,
# which may be desirable for projects with a costly build process.
# Remove this block from the CI workflow to let each CI job run to completion.
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true


################################################################################
### Actions: Curation
###
Expand All @@ -54,9 +62,12 @@ jobs:

- name: 'Setup Haskell'
uses: haskell-actions/setup@v2
id: setup
with:
with:
ghc-version: 9.10.1
cabal-version: 3.12
cabal-update: true

- name: 'Cabal - Configure'
run: |
Expand Down Expand Up @@ -99,23 +110,23 @@ jobs:
run: |
cabal test ${THISTESTEXE} ${PROJECTFILE} ${TESTDETAILS} ${TESTOPTIONS}
- name: Send mail on failure
if: ${{ failure() }}
uses: dawidd6/action-send-mail@v3
with:
# Mail server settings
ignore_cert: true
secure: true
server_address: smtp.domain.com
server_port: 465

# Sender credentials
username: ${{ secrets.EMAIL_USERNAME }}
password: ${{ secrets.EMAIL_PASSWORD }}

# Recipient & email information
to: [email protected]
cc: [email protected]
from: PHANE ρbit
subject: "PHANE CI Failure: Integration Test-suite - job ${{ github.job }}"
body: "The continuous integration performed by GitHub Workflows has failed!\n\nInspect job ${{ github.job.name }} numbered ${{ github.job }} at:\n\n https://github.com/${{ github.repository }}actions.\n\n\nVigilantly,\n ~ PHANE ρbit"
# - name: Send mail on failure
# if: ${{ failure() }}
# uses: dawidd6/action-send-mail@v3
# with:
# # Mail server settings
# ignore_cert: true
# secure: true
# server_address: smtp.domain.com
# server_port: 465
#
# # Sender credentials
# username: ${{ secrets.EMAIL_USERNAME }}
# password: ${{ secrets.EMAIL_PASSWORD }}
#
# # Recipient & email information
# to: [email protected]
# cc: [email protected]
# from: PHANE ρbit
# subject: "PHANE CI Failure: Integration Test-suite - job ${{ github.job }}"
# body: "The continuous integration performed by GitHub Workflows has failed!\n\nInspect job ${{ github.job.name }} numbered ${{ github.job }} at:\n\n https://github.com/${{ github.repository }}actions.\n\n\nVigilantly,\n ~ PHANE ρbit"
1 change: 0 additions & 1 deletion config/cabal.project.integration
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ Source-Repository-Package
-- and log files of the build/benchmarks/tests should go in `log`.
---------------------------------------------------------------------------------

Builddir: ./doc
Symlink-bindir: ./bin
Installdir: ./bin
Logs-Dir: ./log
Expand Down

0 comments on commit 69e159b

Please sign in to comment.