From eb74244444cf124b48e7440e74a4e99a5fb8a643 Mon Sep 17 00:00:00 2001 From: yangmufa Date: Sat, 13 Jul 2024 15:43:22 +0800 Subject: [PATCH] sftp-test --- .github/workflows/node.js.yml | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index f8c7f36..e1b1091 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,9 +1,30 @@ # 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: Node.js CI -# ftp版本 +# ftp,centos或Linux版 +#name: CI +# +#on: +# push: +# branches: +# - main +# +#jobs: +# build: +# runs-on: self-hosted +# +# steps: +# - name: Checkout code +# uses: actions/checkout@v2 +# +# - name: Run a script +# run: echo "Running on CentOS 8.2" + +# ftp,ubuntu版本 + +#name: Node.js CI + ##on: [push] #on: # push: @@ -36,7 +57,10 @@ name: Node.js CI # env: # CI: true -# sftp版本 +# sftp版本,ubuntu系统 + +name: Node.js CI + on: push: branches: [ "master" ] @@ -44,10 +68,11 @@ on: # branches: [ "master" ] jobs: build: - runs-on: centos-8.2 + # ubuntu系统 + runs-on: ubuntu-latest strategy: matrix: - node-version: [18.x] + node-version: [20.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - uses: actions/checkout@v4