From f9df5f76a8326a3646b709abedb7fb26e679f21b Mon Sep 17 00:00:00 2001 From: shanmite <51821703+shanmite@users.noreply.github.com> Date: Wed, 11 Nov 2020 14:29:02 +0800 Subject: [PATCH] Create node.js.yml --- .github/workflows/node.js.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..604baa0 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,27 @@ +name: Node.js CI +on: + push: + branches: + - main + - master + schedule: + - cron: '0 0-23 * * *' +jobs: + Start: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [10.x, 12.x, 14.x] + steps: + - name: 'Checkout codes' + uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: 'Nodejs run' + shell: bash + env: + COOKIE: ${{ secret.COOKIE }} + run: + node main.js "COOKIE=$COOKIE"