From 2bec058227344f6d81fd757053e56df3470fca7f Mon Sep 17 00:00:00 2001 From: lengsukq <105091166+lengsukq@users.noreply.github.com> Date: Fri, 17 Nov 2023 13:18:58 +0800 Subject: [PATCH] Create weixin.yml --- .github/workflows/weixin.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/weixin.yml diff --git a/.github/workflows/weixin.yml b/.github/workflows/weixin.yml new file mode 100644 index 0000000..aedd1f0 --- /dev/null +++ b/.github/workflows/weixin.yml @@ -0,0 +1,32 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: weixin + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + schedule: + - cron: '30 23 * * *' # 每天23:30执行,时间为国际标准时间,换算成北京时间为7:30 + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm install + - run: node index.js