-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: setup integration test in github workflow (#19)
* github workflow * fix workflow
- Loading branch information
1 parent
722ec1d
commit 925204b
Showing
2 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
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
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 |
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