Skip to content

sftp-test

sftp-test #2

Workflow file for this run

# 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
#on:
# push:
# branches: [ "master" ]
# pull_request:
# branches: [ "master" ]
#
#jobs:
# build:
#
# runs-on: ubuntu-latest
#
# strategy:
# matrix:
# node-version: [14.x, 16.x, 18.x, 20.x]
# # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
#
# steps:
# - uses: actions/checkout@v4
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
# cache: 'npm'
# - run: npm ci
# - run: npm run build --if-present
# - run: npm test
on: [push]
jobs:
build:
runs-on: centos-8.2

Check failure on line 37 in .github/workflows/node.js.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/node.js.yml

Invalid workflow file

You have an error in your yaml syntax on line 37
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build -if-present
- name: FTP Deploy
uses: SamKirkland/FTP-Deploy-Action@3.0.0
with:
ftp-server: sftp://sftp.yangmufa.com
ftp-username: ${{secrets.sftp_user }}
ftp-password: ${{ secrets.sftp_pwd }}
local-dir: build/
env:
CI: true