Add GitHub test action.

This commit is contained in:
Sönke Ludwig 2021-01-05 10:46:43 +01:00
parent 2d903ddf21
commit d4a55ea4c0

36
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: Test Suite
# Only triggers on pushes/PRs to master
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
test:
name: CI
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
dc: [dmd-latest, ldc-latest, ldc-1.15.0]
arch: [x86, x86_64]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}
- name: Run tests
env:
CONFIG: ${{matrix.config}}
ARCH: ${{matrix.arch}}
shell: bash
run: dub test