Skip to content

Update outdated packages #131

Update outdated packages

Update outdated packages #131

Workflow file for this run

name: Continuous Integration
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test-unit:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: docker compose up -d
- run: yarn
- run: yarn test
test-performance:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: docker compose up -d
- run: yarn
- run: yarn perf
test-e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: docker compose up -d
env:
PUBLIC_KEY: ${{secrets.PUBLIC_KEY}}
- run: |
sudo echo "127.0.0.1 sftp-server" | sudo tee -a /etc/hosts
# Basic Test with Key Login
- run: ./tests/e2e/setup.sh
env:
PRIVATE_KEY: ${{secrets.PRIVATE_KEY}}
- uses: ./
with:
server: sftp-server
username: username
key: ${{secrets.PRIVATE_KEY}}
port: 2222
dry-run: false
uploads: |
./src/ => ./src/
./dist/ => ./dist/
ignore: |
*.txt
- run: ./tests/e2e/verify-basic.sh
shell: bash
# Basic Test with Password Login, and Delete
- run: docker compose down && docker compose up -d
env:
PUBLIC_KEY: ${{secrets.PUBLIC_KEY}}
- run: ./tests/e2e/setup.sh
env:
PRIVATE_KEY: ${{secrets.PRIVATE_KEY}}
- uses: ./
with:
server: sftp-server
username: username
password: password
port: 2222
dry-run: false
uploads: |
./src/ => ./src/
./dist/ => ./dist/
ignore: |
*.txt
delete: 'true'
- run: ./tests/e2e/verify-basic.sh
shell: bash
# Test dry-run
- run: docker compose down && docker compose up -d
env:
PUBLIC_KEY: ${{secrets.PUBLIC_KEY}}
- run: ./tests/e2e/setup.sh
env:
PRIVATE_KEY: ${{secrets.PRIVATE_KEY}}
- uses: ./
with:
server: sftp-server
username: username
password: password
port: 2222
dry-run: true
uploads: |
./src/ => ./src/
./dist/ => ./dist/
ignore: |
*.txt
delete: 'true'
- run: ./tests/e2e/verify-dry-run.sh
shell: bash