Skip to content

Commit

Permalink
🚀 Add Github Action Testing (#1)
Browse files Browse the repository at this point in the history
Remove main on unittest
  • Loading branch information
JesseKPhillips authored Jan 27, 2020
1 parent 3b25f57 commit 2f5473a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CI

on: [push]

jobs:
test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: mihails-strasuns/setup-dlang@v0.3.0
with:
compiler: dmd-2.090.0
- name: Run tests
run: dub test
2 changes: 2 additions & 0 deletions source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ struct Options
string[] files;
}

version(unittest) {}
else
void main(string[] args) {
Options props;

Expand Down

0 comments on commit 2f5473a

Please sign in to comment.