Skip to content

Commit

Permalink
Add GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
robik committed Feb 17, 2024
1 parent 2d2f4b8 commit 8512b35
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 12 deletions.
8 changes: 7 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ indent_size = 4
tab_width = 4
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
charset = utf-8

[*.yml]
end_of_line = lf
indent_style = space
indent_size = 2
tab_width = 2
25 changes: 25 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Run Tests
on: [push, pull_request, workflow_dispatch]
jobs:
test:
name: DUB Tests
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
dc: [dmd-latest, dmd-beta, ldc-latest, ldc-beta]
exclude:
- { os: macOS-latest, dc: dmd-latest }
- { os: macOS-latest, dc: dmd-beta }

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 Unittests
run: dub -q test
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"Robert Pasiński"
],
"description": "Modern command line argument parser",
"copyright": "Copyright © 2019, Robert Pasiński",
"copyright": "Copyright © 2019-2024, Robert Pasiński",
"license": "MIT"
}

0 comments on commit 8512b35

Please sign in to comment.