diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 345c99b..81ddabd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: test-pr +name: Go on: push: #pull_request: @@ -31,3 +31,17 @@ jobs: with: submodules: 'true' - run: make install + + 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: make test diff --git a/Makefile b/Makefile index a040473..460ebfc 100644 --- a/Makefile +++ b/Makefile @@ -24,3 +24,6 @@ dev: -v "${PWD}:/go/src/github.com/lomorage/lomo-backup" \ --net host --dns-search local \ -it "lomorage/lomo-backup" -d bash + +test: + go test -v ./common/ \ No newline at end of file diff --git a/README.md b/README.md index 3157908..840f1f5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Lomo-backup - Most cost saving 2-stages cloud backup solution +# Lomo-backup - Cost saving 2-stages cloud backup solution -[![GitHub Actions](https://github.com/lomorage/lomo-backup/workflows/main/badge.svg)](https://github.com/lomorage/lomo-backup/actions?query=workflow%3Amain) +[![GitHub Actions](https://github.com/lomorage/lomo-backup/actions/workflows/main.yml/badge.svg)](https://github.com/lomorage/lomo-backup/actions?query=workflow%3AGo) # Motivation