diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 6edbfff6..7b52f007 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -2,8 +2,6 @@ name: check examples on: push: - branches: - - main pull_request: paths: - examples @@ -15,12 +13,6 @@ jobs: strategy: matrix: os: - - name: ubuntu-latest - path: ubuntu_x86_64 - - name: macos-latest - path: mac_intel - - name: macos-14 - path: mac_m1 - name: windows-latest backend: [wasm, wasm-gc, js] runs-on: ${{ matrix.os.name }} @@ -81,7 +73,8 @@ jobs: Get-ChildItem -Path ".\examples" -Directory | ForEach-Object { Write-Output "Processing $($_.FullName)" Set-Location $_.FullName - if (!(moon install) -or !(moon check --target ${{ matrix.backend }}) -or !(moon test --target ${{ matrix.backend }})) { + moon install && moon check --target ${{ matrix.backend }} && moon test --target ${{ matrix.backend }} + if !($?) { Write-Output "Failed in $($_.FullName)" $failed_directories += $_.FullName }