From 90a08d499b2197155e0dfcae56c2db96170e00a7 Mon Sep 17 00:00:00 2001 From: Bao Zhiyuan Date: Sat, 11 May 2024 17:33:28 +0800 Subject: [PATCH] init --- .github/workflows/check.yml | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..6aa044e --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,48 @@ +name: check + +on: + push: + branches: + - main + schedule: + - cron: '0 2 * * *' + +jobs: + simple-use: + runs-on: macos-latest + env: + WECOM_ROBOT_KEY: ${{ secrets.WECOM_ROBOT_KEY }} + steps: + - name: install + run: | + /bin/bash -c "$(curl -fsSL https://cli.moonbitlang.com/bleeding/mac_m1_moon_setup.sh)" + echo "$HOME/.moon/bin" >> $GITHUB_PATH + + - name: moon version + run: | + moon version --all + moonrun --version + + - name: update mooncakes registry + run: moon update + + - name: simple use + run: | + moon new hello + cd hello + moon add bzy-debug/hello + moon run main + + - name: notify on fail + if: ${{ failure() }} + run: | + curl "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=$WECOM_ROBOT_KEY" \ + -H 'Content-Type: application/json' \ + -d @- <