Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-jerry-ye committed Jun 19, 2024
1 parent 5aba030 commit 2705cfd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: check examples

on:
push:
branches:
- main
pull_request:
paths:
- examples
Expand Down Expand Up @@ -81,6 +79,12 @@ jobs:
Get-ChildItem -Path ".\examples" -Directory | ForEach-Object {
Write-Output "Processing $($_.FullName)"
Set-Location $_.FullName
Write-Output "Installing dependencies"
moon install
Write-Output "Checking target"
moon check --target ${{ matrix.backend }}
Write-Output "Running tests"
moon test --target ${{ matrix.backend }}
if (!(moon install) -or !(moon check --target ${{ matrix.backend }}) -or !(moon test --target ${{ matrix.backend }})) {
Write-Output "Failed in $($_.FullName)"
$failed_directories += $_.FullName
Expand Down

0 comments on commit 2705cfd

Please sign in to comment.