wonderbird/malimo

View on GitHub
.github/workflows/build_wo_release.yml

Summary

Maintainability
Test Coverage
name: .NET build w/o release

on:
  workflow_dispatch:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

env:
  RETENTION_DAYS: 1

jobs:
  determine_version:
    name: Determine version
    uses: ./.github/workflows/_determine_version.yml

  test:
    name: Unit tests
    uses: ./.github/workflows/_unit_tests.yml

  publish_codeclimate:
    name: Publish to CodeClimate
    needs: [test]
    if: ${{ github.event_name != 'pull_request' }}
    uses: ./.github/workflows/_publish_codeclimate.yml
    secrets: inherit

  pack_macos:
    name: Pack for macOS
    needs: [determine_version, test]
    
    uses: ./.github/workflows/_pack_macos.yml
    with:
      assembly_version: ${{ needs.determine_version.outputs.assembly_version }}
      is_dry_run: true
    secrets: inherit

  pack_win:
    name: Pack for Windows
    needs: [determine_version, test]
    
    uses: ./.github/workflows/_pack_win.yml
    with:
      semantic_version: ${{ needs.determine_version.outputs.semantic_version }}
      assembly_version: ${{ needs.determine_version.outputs.assembly_version }}
  
  release:
    name: Release
    needs: [determine_version, test, pack_macos, pack_win]

    permissions:
      contents: write

    uses: ./.github/workflows/_release.yml
    with:
      semantic_version: ${{ needs.determine_version.outputs.semantic_version }}
      is_dry_run: true
    secrets: inherit