-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
73df02d
commit 69e159b
Showing
2 changed files
with
31 additions
and
21 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
### | ||
|
@@ -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: | | ||
|
@@ -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" |
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