forked from lestrrat-go/file-rotatelogs
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: optimize and fix * fix: lint * feat: use upstream test cases * fix: lint * fix: test * fix: test * feat: add example test
- Loading branch information
Showing
27 changed files
with
1,598 additions
and
247 deletions.
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,25 @@ | ||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
version: 2 | ||
updates: | ||
- package-ecosystem: gomod | ||
directory: / | ||
labels: | ||
- "🤖 Dependencies" | ||
schedule: | ||
interval: daily | ||
groups: | ||
go-modules: | ||
patterns: | ||
- "*" | ||
open-pull-requests-limit: 100 | ||
- package-ecosystem: github-actions | ||
directory: / | ||
labels: | ||
- "🤖 Dependencies" | ||
schedule: | ||
interval: daily | ||
groups: | ||
github-actions: | ||
patterns: | ||
- "*" | ||
open-pull-requests-limit: 100 |
This file was deleted.
Oops, something went wrong.
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,32 @@ | ||
name: Lint | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
permissions: | ||
contents: read | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: 'stable' | ||
cache: false | ||
- name: go mod pakcage cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('go.mod') }} | ||
- name: Install dependencies | ||
run: go mod tidy | ||
- name: Lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
skip-cache: true | ||
skip-pkg-cache: true | ||
skip-build-cache: true | ||
version: latest | ||
args: --timeout=30m ./... |
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,11 @@ | ||
name: PR Check Title | ||
on: | ||
pull_request: | ||
jobs: | ||
pr-check-title: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: Slashgear/[email protected] | ||
with: | ||
regexp: "^(feat|fix|docs|style|refactor|perf|test|workflow|build|ci|chore|types|wip|release|revert)(\\(.+\\))?!?: .+" | ||
helpMessage: "Your PR title is invalid. Please follow the Conventional Commits specification: https://www.conventionalcommits.org/en/v1.0.0/" |
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,28 @@ | ||
name: Test | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
go: | ||
- "stable" | ||
- "oldstable" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- name: go mod pakcage cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('go.mod') }} | ||
- name: Install dependencies | ||
run: go mod tidy | ||
- name: Run tests | ||
run: go test ./... |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
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
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 |
---|---|---|
@@ -1,14 +1,13 @@ | ||
module github.com/goravel/file-rotatelogs/v2 | ||
|
||
go 1.12 | ||
go 1.20 | ||
|
||
require ( | ||
github.com/fastly/go-utils v0.0.0-20180712184237-d95a45783239 // indirect | ||
github.com/jehiah/go-strftime v0.0.0-20171201141054-1d33003b3869 // indirect | ||
github.com/jonboulle/clockwork v0.1.0 | ||
github.com/lestrrat-go/envload v0.0.0-20180220234015-a3eb8ddeffcc // indirect | ||
github.com/lestrrat-go/strftime v0.0.0-20180821113735-8b31f9c59b0f | ||
github.com/pkg/errors v0.8.1 | ||
github.com/lestrrat-go/envload v0.0.0-20180220234015-a3eb8ddeffcc | ||
github.com/stretchr/testify v1.3.0 | ||
github.com/tebeka/strftime v0.1.3 // indirect | ||
) | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.0 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
) |
Oops, something went wrong.