-
Notifications
You must be signed in to change notification settings - Fork 29
42 lines (42 loc) · 1.09 KB
/
ci2.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
on:
push:
branches:
- master
pull_request:
schedule:
- cron: '0 2 * * *' # Run everyday, at 2AM UTC.
name: ci-profiler
jobs:
system-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/setup-node@v4
with:
node-version: 14
- run: npm install
- run: npm run system-test
- name: coverage
uses: codecov/codecov-action@v4
with:
name: actions system-test
fail_ci_if_error: false
golint:
runs-on: ubuntu-latest
container: golang:latest
steps:
- run: |
gofmtdiff=$(gofmt -s -d .)
if [ -n "$gofmtdiff" ]
then
printf 'gofmt -s found:\n%s\n' "$gofmtdiff" && exit 1;
fi
- run: |
go mod init tools
go get -u golang.org/x/lint/golint
go install golang.org/x/lint/golint
golintlint=$(golint ./...)
if [ -n "$golintlint" ]
then
printf 'golint found:\n%s\n' "$golintlint" && exit 1
fi