Added framework matrix to build #167
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
timeout-minutes: 60 | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
framework: [net462, net48, net8.0] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.framework }} | |
cancel-in-progress: true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- name: Format the date of next Tuesday | |
id: tuesday | |
run: echo "abbr=$(date '+tuesday%y%m%d')" >> $GITHUB_ENV | |
- name: Read exported variable | |
run: | | |
echo "$abbr" | |
echo "${{ env.abbr }}" | |
# - name: Build project | |
# run: dotnet build -bl:build.binlog --configuration Release | |
# - name: Get Path to Tests | |
# id: test-path | |
# run: echo "TEST_PATH=dotnet msbuild -p:TargetFrameworks=${{ matrix.framework }} --getProperty:OutputPath -p:Configuration=Release" >> "$GITHUB_OUTPUT" | |
# - name: Print | |
# env: | |
# TEST_PATH: ${{ steps.test-path.outputs.TEST_PATH }} | |
# run: echo "$TEST_PATH" | |
# there are cases where this will fail and we want to know about it | |
# so we don't use continue-on-error, but we still want to publish the results | |
# - name: Test project | |
# id: test | |
# run: dotnet test $TEST_PATH/SIL*Tests.dll -bl:test.binlog --filter "TestCategory != SkipOnTeamCity" --no-build --configuration Release --blame-hang-timeout 5m --logger:"trx;LogFilePrefix=results" --results-directory ./test-results | |
# - name: Publish test results | |
# if: ${{ !cancelled() && steps.test.outcome != 'skipped' }} | |
# uses: EnricoMi/publish-unit-test-result-action/windows@v2 | |
# with: | |
# check_name: LibPalaso Tests | |
# files: ./test-results/**/*.trx | |
# action_fail: true | |
# action_fail_on_inconclusive: true | |
# - name: Publish logs on failure | |
# if: failure() | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: binary-logs | |
# path: | | |
# build.binlog | |
# test.binlog |