GitHub Actions and D

name: D
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dlang-community/setup-dlang@v1
- name: 'Build & Test'
run: |
dub build
dub test
on: 
push:
paths:
- 'src/**'
- 'dub.json'
- '.github/workflows/**'
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
dc: [dmd-latest, ldc-latest, dmd-2.094.2, ldc-1.24.0]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}
- name: 'Build & Test'
run: |
dub build
dub test
- name: 'Build & Test'
run: |
dub build
dub test --build=unittest-cov
- name: 'Run code coverage'
if: success()
run: |
curl https://codecov.io/bash > codecov.sh
bash codecov.sh

--

--

--

Computer graphics developer

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Timur Gafarov

Timur Gafarov

Computer graphics developer

More from Medium

MacOS Bootstrap 2022 — Finder

[Tech Blog] Publish gRPC API using Cloud Endpoints & GKE

How IoT and Wearables are Improving Fintech in 2022?

how-iot-and-wearables-are-improving-fintech-in-2022?

PeopleSoft Cloud Manager 13