ci-profiler #2063
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
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 |