Upgrade to node20 #147
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test-unit: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
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: [20.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
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@v4 | |
- 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 |