Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: setup integration test in github workflow #19

Merged
merged 2 commits into from
Aug 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "Integration Test"

on: [push, pull_request]

jobs:
integration_test:
name: Integration Test
runs-on: ${{ matrix.os }}
env:
STORAGE_FTP_INTEGRATION_TEST: on
STORAGE_FTP_CREDENTIAL: basic:anonymous:password
STORAGE_FTP_ENDPOINT: tcp:127.0.0.1:2121

strategy:
matrix:
go: ["1.15", "1.16"]
os: [ubuntu-latest]

steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}

- name: Checkout beyong-ftp repository
uses: actions/checkout@v2
with:
path: beyond-ftp

- name: Checkout go-service-ftp repository
uses: actions/checkout@v2
with:
repository: beyondstorage/go-service-ftp
path: go-service-ftp

- name: Build
run: cd beyond-ftp && make build

- name: Start FTP server
run: cd beyond-ftp && bin/beyond-ftp &

- name: Integration Test
run: cd go-service-ftp && make integration_test
2 changes: 1 addition & 1 deletion config/config.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ service = "memory:///ftp"
host = "localhost"

# FTP server port.
port = 21
port = 2121

# FTP server passive connection host.
public-host = "127.0.0.1"
Expand Down