Skip to content

Commit ab20c7c

Browse files
authored
Update build.yml (#3)
* Update build.yml Signed-off-by: Oleg Kovalov <[email protected]> * Create dependabot.yml Signed-off-by: Oleg Kovalov <[email protected]> --------- Signed-off-by: Oleg Kovalov <[email protected]>
1 parent ed00c59 commit ab20c7c

File tree

2 files changed

+26
-28
lines changed

2 files changed

+26
-28
lines changed

.github/.github/dependabot.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gomod"
4+
commit-message:
5+
prefix: "deps:"
6+
directory: "/"
7+
schedule:
8+
interval: "weekly"
9+
day: "sunday"
10+
time: "09:00"
11+
- package-ecosystem: "github-actions"
12+
commit-message:
13+
prefix: "ci:"
14+
directory: "/"
15+
schedule:
16+
interval: "weekly"
17+
day: "sunday"
18+
time: "09:00"

.github/workflows/build.yml

+8-28
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,16 @@ name: build
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
8+
schedule:
9+
- cron: '0 0 * * 0' # run "At 00:00 on Sunday"
810

11+
# See https://github.com/cristalhq/.github/.github/workflows
912
jobs:
10-
1113
build:
12-
name: Build
13-
runs-on: ubuntu-latest
14-
steps:
15-
16-
- name: Set up Go 1.x
17-
uses: actions/setup-go@v2
18-
with:
19-
go-version: ^1.15
20-
21-
- name: Check out code into the Go module directory
22-
uses: actions/checkout@v2
23-
24-
- name: Download module dependencies
25-
env:
26-
GOPROXY: "https://proxy.golang.org"
27-
run: go mod download
28-
29-
- name: Test
30-
run: go test -v -coverprofile=coverage.txt ./...
14+
uses: cristalhq/.github/.github/workflows/[email protected]
3115

32-
- name: Upload Coverage
33-
uses: codecov/codecov-action@v1
34-
with:
35-
token: ${{secrets.CODECOV_TOKEN}}
36-
file: ./coverage.txt
37-
fail_ci_if_error: false
16+
vuln:
17+
uses: cristalhq/.github/.github/workflows/[email protected]

0 commit comments

Comments
 (0)