Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit 0779f1f

Browse files
committed
Refine CI
1 parent a355f3a commit 0779f1f

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ updates:
1717
schedule:
1818
interval: "weekly"
1919

20+
- package-ecosystem: "docker"
21+
directory: "/build"
22+
schedule:
23+
interval: "weekly"
24+
2025
# Maintain dependencies for GitHub Actions
2126
- package-ecosystem: "github-actions"
2227
directory: "/"

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
ci-build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-go@v3
14+
- uses: actions/checkout@v3.0.2
15+
- uses: actions/setup-go@v3.3.0
1616
with:
1717
go-version: 1.18
1818
- run: ./goyek.sh
19-
- name: Upload coverage
20-
uses: actions/upload-artifact@v3
19+
- name: Upload HTML coverage
20+
uses: actions/upload-artifact@v3.1.0
2121
with:
2222
name: coverage
2323
path: coverage.*
@@ -35,8 +35,8 @@ jobs:
3535
- '1.19'
3636
runs-on: ubuntu-latest
3737
steps:
38-
- uses: actions/checkout@v3
39-
- uses: actions/setup-go@v3
38+
- uses: actions/checkout@v3.0.2
39+
- uses: actions/setup-go@v3.3.0
4040
with:
4141
go-version: ${{ matrix.go-version }}
4242
- run: go test -race ./...

.github/workflows/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags: [ 'v*' ]
6+
7+
jobs:
8+
godoc:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/[email protected]
12+
with:
13+
go-version: '1.19'
14+
- name: Wait 1 minute
15+
# make sure that new the tag is available for pkg.go.dev
16+
run: sleep 60
17+
- name: Update pkg.go.dev
18+
run: go get -u github.com/${{ github.repository }}@${{ github.ref_name }}

0 commit comments

Comments
 (0)