From 8512b356f942d45fb30dc262a258503b1b703326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Pasi=C5=84ski?= Date: Sat, 17 Feb 2024 16:26:24 +0100 Subject: [PATCH] Add GitHub Actions --- .editorconfig | 8 +++++++- .github/workflows/run-tests.yml | 25 +++++++++++++++++++++++++ .travis.yml | 10 ---------- dub.json | 2 +- 4 files changed, 33 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/run-tests.yml delete mode 100644 .travis.yml diff --git a/.editorconfig b/.editorconfig index e8a6041..566f044 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,4 +7,10 @@ indent_size = 4 tab_width = 4 insert_final_newline = true trim_trailing_whitespace = true -charset = utf-8 \ No newline at end of file +charset = utf-8 + +[*.yml] +end_of_line = lf +indent_style = space +indent_size = 2 +tab_width = 2 diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..082fbbc --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9b1964b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: d - -matrix: - include: - - d: dmd-beta - - d: dmd - - d: gdc - - d: ldc - -sudo: false \ No newline at end of file diff --git a/dub.json b/dub.json index 76ef0fc..c0196e1 100644 --- a/dub.json +++ b/dub.json @@ -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" } \ No newline at end of file