Skip to content

Commit

Permalink
Refine CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared committed Oct 1, 2022
1 parent a355f3a commit 0779f1f
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ updates:
schedule:
interval: "weekly"

- package-ecosystem: "docker"
directory: "/build"
schedule:
interval: "weekly"

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
ci-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v3.0.2
- uses: actions/setup-go@v3.3.0
with:
go-version: 1.18
- run: ./goyek.sh
- name: Upload coverage
uses: actions/upload-artifact@v3
- name: Upload HTML coverage
uses: actions/upload-artifact@v3.1.0
with:
name: coverage
path: coverage.*
Expand All @@ -35,8 +35,8 @@ jobs:
- '1.19'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v3.0.2
- uses: actions/setup-go@v3.3.0
with:
go-version: ${{ matrix.go-version }}
- run: go test -race ./...
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: release

on:
push:
tags: [ 'v*' ]

jobs:
godoc:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
go-version: '1.19'
- name: Wait 1 minute
# make sure that new the tag is available for pkg.go.dev
run: sleep 60
- name: Update pkg.go.dev
run: go get -u github.com/${{ github.repository }}@${{ github.ref_name }}

0 comments on commit 0779f1f

Please sign in to comment.