Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:dxyinme/dcron into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
dxyinme committed Jan 7, 2024
2 parents cb7ac49 + a5d78b0 commit 73e5de5
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 11 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,19 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Redis Server in GitHub Actions
uses: supercharge/redis-github-action@1.4.0
uses: supercharge/redis-github-action@1.7.0
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go_version }}

- name: Test
run: go test -v $(go list ./... | grep -v github.com/libi/dcron/e2e)
run: go test -v -timeout 30m -coverprofile=coverage.txt -covermode=atomic ./...

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Test E2E
run: go test -v ./e2e
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.idea
.idea/*
bin/
bin/
coverage.txt
coverage.html
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Dcron
==============
[![Language](https://img.shields.io/badge/Language-Go-blue.svg)](https://golang.org/)
[![codecov](https://codecov.io/gh/libi/dcron/graph/badge.svg?token=TBW1NN43AZ)](https://codecov.io/gh/libi/dcron)
[![Tests](https://github.com/libi/dcron/actions/workflows/test.yml/badge.svg)](https://github.com/libi/dcron/actions/workflows/test.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/libi/dcron#1)](https://goreportcard.com/report/github.com/libi/dcron)

Expand Down Expand Up @@ -79,4 +80,4 @@ Multiple nodes using the same service name will be considered as the same task g

### Star history

[![Star History Chart](https://api.star-history.com/svg?repos=libi/dcron&type=Date)](https://star-history.com/#libi/dcron&Date)
[![Star History Chart](https://api.star-history.com/svg?repos=libi/dcron&type=Date)](https://star-history.com/#libi/dcron&Date)
2 changes: 1 addition & 1 deletion e2e/dcron_test.go → dcron_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package e2e_test
package dcron_test

import (
"log"
Expand Down
2 changes: 1 addition & 1 deletion e2e/etcddriver_test.go → driver/etcddriver_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package e2e_test
package driver_test

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion e2e/redisdriver_test.go → driver/redisdriver_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package e2e_test
package driver_test

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package e2e_test
package driver_test

import (
"context"
Expand Down

0 comments on commit 73e5de5

Please sign in to comment.