Skip to content

ci: fix bug that labels are not created #440

ci: fix bug that labels are not created

ci: fix bug that labels are not created #440

Workflow file for this run

name: ci
on:
push:
paths-ignore:
- 'README.md'
tags-ignore:
- "v[0-9]+.[0-9]+.[0-9]+"
branches:
- "*"
pull_request:
types:
- opened
- synchronize
- reopened
paths-ignore:
- 'README.md'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
id: go
- name: Cache
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Unshallow
run: git fetch --prune --unshallow --tags
- name: build
run: make build
- name: test
run: make test_view
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: cover.html
reviewdog:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: lint
uses: reviewdog/action-golangci-lint@v2
with:
go_version_file: go.mod
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
level: error
filter_mode: nofilter
golangci_lint_flags: "--config=.golangci.yml"
fail_on_error: true