-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split PRs and pushes to seperate workflows.
- Loading branch information
1 parent
d7c1cd6
commit 21566c7
Showing
3 changed files
with
43 additions
and
3 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 |
---|---|---|
|
@@ -5,8 +5,6 @@ | |
name: Unit Tests | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
name: Unit Tests | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test: | ||
name: 'Build & Test' | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
dc: [dmd-latest, ldc-latest] | ||
exclude: | ||
- { os: macOS-latest, dc: dmd-latest } | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install compiler | ||
uses: dlang-community/setup-dlang@v1.4.0 | ||
with: | ||
compiler: ${{ matrix.dc }} | ||
|
||
- name: 'Build and test with ${{ matrix.os }} ${{ matrix.dc }}' | ||
run: | | ||
# Build and run tests, as defined by `unittest` configuration | ||
# In this mode, `mainSourceFile` is excluded and `version (unittest)` are included | ||
# See https://dub.pm/package-format-json.html#configurations | ||
dub test | ||
# Ditto, in release mode. | ||
# Sometimes D packages break in release mode, so this is important to test. | ||
dub test --build=release |
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