Skip to content

Commit

Permalink
ci: allow unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kucaahbe committed Jan 18, 2024
1 parent 685f578 commit 2f41f1f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,26 @@ name: 'Build'

on:
push:
branches: [ "main" ]
tags: 'v**'
branches: '**'
tags: 'v[0-9]+.[0-9]+.[0-9]+'

pull_request:
branches: [ "main" ]
branches: 'main'

# workflow_dispatch:
# inputs:
# verbose_build:
# description: 'verbose build process'
# type: boolean
# required: true
# default: false

permissions:
contents: read

jobs:
build:
name: 'Build'
name: 'Build & Test'

strategy:
fail-fast: false
Expand All @@ -34,7 +43,7 @@ jobs:
with:
compiler: ${{ matrix.dc }}

- name: 'dub build'
- name: 'dub build && dub test'
run: |
dub_configuration=application
Expand All @@ -48,10 +57,13 @@ jobs:
fi
fi
uname -a
$DC --version
# if [[ "${{ inputs.verbose_build }}" = "true" ]]; then
# uname -a
# $DC --version
# fi
dub build --compiler=$DC --build=release-debug --config=$dub_configuration --verbose
dub build --compiler=$DC --build=release-debug --config=$dub_configuration # --verbose
dub test --compiler=$DC --config=$dub_configuration # --verbose
- name: 'Upload binary'
uses: actions/upload-artifact@v3
Expand Down
2 changes: 2 additions & 0 deletions dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ authors "kucaahbe"
copyright "Copyright © 2024, kucaahbe"
license "MIT"

mainSourceFile "source/main.d"

dependency "sdlite" version="~>1.2.0"

configuration "application" {
Expand Down
File renamed without changes.

0 comments on commit 2f41f1f

Please sign in to comment.