fix node expire error due to type in gorm model Update (#1692) #1
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
--- | |
name: Lint | |
on: [push, pull_request] | |
concurrency: | |
group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
golangci-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v34 | |
with: | |
files: | | |
*.nix | |
go.* | |
**/*.go | |
integration_test/ | |
config-example.yaml | |
- name: golangci-lint | |
if: steps.changed-files.outputs.any_changed == 'true' | |
uses: golangci/golangci-lint-action@v2 | |
with: | |
version: v1.51.2 | |
# Only block PRs on new problems. | |
# If this is not enabled, we will end up having PRs | |
# blocked because new linters has appared and other | |
# parts of the code is affected. | |
only-new-issues: true | |
prettier-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 2 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/[email protected] | |
with: | |
files: | | |
*.nix | |
**/*.md | |
**/*.yml | |
**/*.yaml | |
**/*.ts | |
**/*.js | |
**/*.sass | |
**/*.css | |
**/*.scss | |
**/*.html | |
- name: Prettify code | |
if: steps.changed-files.outputs.any_changed == 'true' | |
uses: creyD/[email protected] | |
with: | |
prettier_options: >- | |
--check **/*.{ts,js,md,yaml,yml,sass,css,scss,html} | |
only_changed: false | |
dry: true | |
proto-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: bufbuild/[email protected] | |
- uses: bufbuild/buf-lint-action@v1 | |
with: | |
input: "proto" |