-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
183 additions
and
100 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,20 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: gomod | ||
directory: / | ||
schedule: | ||
interval: daily | ||
groups: | ||
go-modules: | ||
patterns: | ||
- "*" | ||
open-pull-requests-limit: 100 | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: daily | ||
groups: | ||
github-actions: | ||
patterns: | ||
- "*" | ||
open-pull-requests-limit: 100 |
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: | ||
- '*' | ||
pull_request: | ||
jobs: | ||
unit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
cache: true | ||
go-version: 'stable' | ||
- name: install task | ||
run: | | ||
echo "install task" | ||
go install github.com/go-task/task/v3/cmd/task@latest | ||
- name: install xcaddy | ||
run: | | ||
echo "install xcaddy" | ||
go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest | ||
- name: build caddy & test | ||
run: | | ||
task |
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 @@ | ||
caddy |
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,31 @@ | ||
# https://taskfile.dev | ||
|
||
version: '3' | ||
|
||
|
||
|
||
tasks: | ||
xcaddy: | ||
desc: check xcaddy install | ||
cmds: | ||
- go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest | ||
status: | ||
- command -v xcaddy | ||
|
||
build: | ||
desc: build caddy | ||
deps: | ||
- task: xcaddy | ||
cmds: | ||
- xcaddy build --with github.com/caddy-dns/tencentcloud=../tencentcloud | ||
|
||
test: | ||
desc: test | ||
deps: | ||
- task: build | ||
cmds: | ||
- ./caddy list-modules | grep dns.providers.tencentcloud && echo "tencentcloud module is installed" || (echo "tencentcloud module not found" && exit 1) | ||
|
||
default: | ||
cmds: | ||
- task: test |
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
Oops, something went wrong.