add e2e test script and docker support #67
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: Go | |
on: | |
push: | |
#pull_request: | |
# types: | |
# - opened | |
# - synchronize | |
# - reopened | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
container: | |
image: lomorage/lomo-backup:1.0 | |
env: | |
PATH: /bin:/usr/bin:/usr/local/bin:/usr/local/go/bin | |
GOFLAGS: "-buildvcs=false" | |
steps: | |
- uses: actions/checkout@v4 | |
- run: make lint | |
unit-test: | |
runs-on: ubuntu-22.04 | |
container: | |
image: lomorage/lomo-backup:1.0 | |
env: | |
PATH: /bin:/usr/bin:/usr/local/bin:/usr/local/go/bin | |
GOBIN: /usr/local/bin | |
GOFLAGS: "-buildvcs=false" | |
steps: | |
- uses: actions/checkout@v4 | |
- run: make unit-tests | |
e2e-test: | |
runs-on: ubuntu-22.04 | |
container: | |
image: lomorage/lomo-backup:1.0 | |
env: | |
PATH: /bin:/usr/bin:/usr/local/bin:/usr/local/go/bin | |
GOBIN: /usr/local/bin | |
GOFLAGS: "-buildvcs=false" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- run: ls -lR ./test/data | |
- run: make install | |
- run: make e2e-tests |