Set target path to bin/ folder for cleaner builds #619
Workflow file for this run
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
name: Run Unittests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
dubtest: | |
name: Dub Tests | |
strategy: | |
fail-fast: false | |
matrix: | |
# ubuntu / linux must run on kinda old linux for glibc compatibility! | |
os: [ubuntu-20.04, windows-latest, macos-latest] | |
dc: [dmd-latest, ldc-latest] | |
exclude: | |
- os: windows-latest | |
dc: dmd-latest | |
- os: macos-latest | |
dc: dmd-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install D compiler | |
uses: dlang-community/setup-dlang@v1 | |
timeout-minutes: 5 | |
with: | |
compiler: ${{ matrix.dc }} | |
- name: Run workspace-d tests | |
run: dub test :workspace-d | |
timeout-minutes: 30 | |
env: | |
MACOSX_DEPLOYMENT_TARGET: '10.12' | |
- name: serialization tests | |
run: dub test :protocol | |
timeout-minutes: 10 | |
env: | |
# shouldn't break other OSes | |
MACOSX_DEPLOYMENT_TARGET: '10.12' | |
- name: LSP tests | |
run: dub test :lsp | |
timeout-minutes: 10 | |
env: | |
# shouldn't break other OSes | |
MACOSX_DEPLOYMENT_TARGET: '10.12' | |
- name: serverbase tests | |
run: dub test :serverbase | |
timeout-minutes: 10 | |
env: | |
MACOSX_DEPLOYMENT_TARGET: '10.12' | |
- name: build minimal server | |
run: dub build --root=null_server | |
timeout-minutes: 10 | |
env: | |
MACOSX_DEPLOYMENT_TARGET: '10.12' | |
- name: test minimal server | |
run: dub run --root=null_server_test | |
timeout-minutes: 10 | |
env: | |
MACOSX_DEPLOYMENT_TARGET: '10.12' | |
- name: Run tests | |
run: dub test | |
timeout-minutes: 30 | |
env: | |
MACOSX_DEPLOYMENT_TARGET: '10.12' | |
- name: Run standalone tests | |
run: ./runtests.sh | |
working-directory: ./test | |
timeout-minutes: 30 | |
env: | |
MACOSX_DEPLOYMENT_TARGET: '10.12' |