From b4a9d8ec2e65e2af80147886646f1fea0100f8f9 Mon Sep 17 00:00:00 2001 From: Glenn Lewis <6598971+gmlewis@users.noreply.github.com> Date: Fri, 16 Aug 2024 18:30:41 -0400 Subject: [PATCH] Add daily-tests.yml Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com> --- .github/workflows/daily-tests.yml | 66 +++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/workflows/daily-tests.yml diff --git a/.github/workflows/daily-tests.yml b/.github/workflows/daily-tests.yml new file mode 100644 index 0000000..ac3c57c --- /dev/null +++ b/.github/workflows/daily-tests.yml @@ -0,0 +1,66 @@ +name: Daily Tests +on: + schedule: + - cron: "0 7 * * *" + # Run around midnight Pacific time. + # GitHub runs crons on UTC time. + +jobs: + build: + strategy: + matrix: + # os: [ubuntu-latest, macos-latest, windows-latest] + os: [ubuntu-latest] + + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + + - name: install-ubuntu + if: ${{ matrix.os == 'ubuntu-latest' }} + run: | + /bin/bash -c "$(curl -fsSL https://cli.moonbitlang.com/ubuntu_x86_64_moon_setup.sh)" + echo "/home/runner/.moon/bin" >> $GITHUB_PATH + # - name: install-macos + # if: ${{ matrix.os == 'macos-latest' }} + # run: | + # /bin/bash -c "$(curl -fsSL https://cli.moonbitlang.com/mac_intel_moon_setup.sh)" + # echo "/Users/runner/.moon/bin" >> $GITHUB_PATH + # - name: install-windows + # if: ${{ matrix.os == 'windows-latest' }} + # run: | + # Set-ExecutionPolicy RemoteSigned -Scope CurrentUser; irm https://cli.moonbitlang.cn/windows_moon_setup.ps1 | iex + # "C:\Users\runneradmin\.moon\bin" | Out-File -FilePath $env:GITHUB_PATH -Append + + - name: moon version + run: | + moon version --all + moonrun --version + + - name: moon update + run: | + moon update + + - name: moon install + run: | + moon install + + - name: moon check + # run: moon check --deny-warn + # Allow warnings during development: + run: moon check + + - name: moon info + run: | + moon info + git diff --exit-code + + - name: moon test + run: | + moon test + moon test --target js + + - name: format diff + run: | + moon fmt + git diff --exit-code