mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
Create node.js.yml
This commit is contained in:
commit
f9df5f76a8
27
.github/workflows/node.js.yml
vendored
Normal file
27
.github/workflows/node.js.yml
vendored
Normal file
@ -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"
|
||||
Loading…
Reference in New Issue
Block a user