diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a85c456e..373a39fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,17 @@ name: CI -on: [ push, pull_request ] +on: + push: + branches: + - 'v*.*.x' + tags: + - 'v*' + pull_request: + branches: + - 'v*.*.x' + # Do a periodic build (every Monday at 0600) to ensure integrity + schedule: + - cron: '0 6 * * 1' jobs: build: @@ -8,25 +19,31 @@ jobs: strategy: fail-fast: false matrix: - os: [ ubuntu-latest, macos-latest, windows-latest ] - dc: [ dmd-latest, ldc-latest, dmd-2.085.1, ldc-1.14.0 ] + include: + - { os: macos-latest, dc: ldc-latest } + - { os: ubuntu-latest, dc: dmd-latest } + - { os: ubuntu-latest, dc: ldc-latest } + - { os: windows-latest, dc: dmd-latest } + - { os: windows-latest, dc: ldc-latest } runs-on: ${{ matrix.os }} timeout-minutes: 40 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: # Requiried for codecov action fetch-depth: 2 - uses: dlang-community/setup-dlang@v1 + with: + compiler: ${{ matrix.dc }} - name: 'Build & Test' shell: bash run: | - dub test --compiler=$DC -b unittest-cov + dub test -b unittest-cov - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 with: flags: unittests diff --git a/source/geod24/LocalRest.d b/source/geod24/LocalRest.d index 72b5d2e5..05336e02 100644 --- a/source/geod24/LocalRest.d +++ b/source/geod24/LocalRest.d @@ -1906,7 +1906,7 @@ unittest assert(called); // Test that attributes are inferred based on the delegate - void doTest () @safe nothrow + void doTest () nothrow { called = false; node.ctrl.withTimeout(Duration.zero,