Skip to content

Commit

Permalink
Merge pull request atilaneves#111 from atilaneves/github-actions
Browse files Browse the repository at this point in the history
GitHub actions
  • Loading branch information
atilaneves authored Dec 11, 2020
2 parents 398979e + 3f3b0a3 commit 5ee9a05
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 25 deletions.
41 changes: 17 additions & 24 deletions .github/workflows/d.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,22 @@
# 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: D

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
name: CI
on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
test:
name: Dub Test
strategy:
matrix:
os: [ubuntu-latest]
dc: [dmd-2.094.2]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: dlang-community/setup-dlang@7c3e57bdc1ff2d8994f00e61b3ef400e67d2d7ac
- uses: actions/checkout@v2
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}

- name: 'Build & Test'
run: |
# Build the project, with its main file included, without unittests
dub build --compiler=$DC
# 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 --compiler=$DC
- name: Run tests
run: dub -q test -- ~@tup ~@travis_oops
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Reggae
=======
[![Actions Status](https://github.com/atilaneves/reggae/workflows/CI/badge.svg)](https://github.com/atilaneves/reggae/actions)
[![Build Status](https://travis-ci.org/atilaneves/reggae.png?branch=master)](https://travis-ci.org/atilaneves/reggae)
[![Build Status](https://ci.appveyor.com/api/projects/status/github/atilaneves/reggae?branch=master&svg=true)](https://ci.appveyor.com/project/atilaneves/reggae)
[![Coverage](https://codecov.io/gh/atilaneves/reggae/branch/master/graph/badge.svg)](https://codecov.io/gh/atilaneves/reggae)
Expand Down
6 changes: 5 additions & 1 deletion tests/it/rules/static_lib.d
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
module tests.it.rules.static_lib;


import tests.it;

@("template") unittest {

@Tags("travis_oops")
@("template")
unittest {
import reggae.buildgen;
auto options = _testProjectOptions("binary", "static_lib");
string[] noFlags;
Expand Down

0 comments on commit 5ee9a05

Please sign in to comment.