Skip to content

Commit

Permalink
Merge pull request #2 from lomorage/workflow
Browse files Browse the repository at this point in the history
add test for ci jobs and fix workflow status badge
  • Loading branch information
dwebfan authored May 2, 2024
2 parents 55f1e65 + 7481185 commit 5cada4e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test-pr
name: Go
on:
push:
#pull_request:
Expand Down Expand Up @@ -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
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 5cada4e

Please sign in to comment.