Skip to content

feat: implement dual-mode export with build tags separation #60

feat: implement dual-mode export with build tags separation

feat: implement dual-mode export with build tags separation #60

Workflow file for this run

# Copyright 2025 openGemini Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: go ci lint
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
GO111MODULE: on
GONOSUMDB: "*"
GOSUMDB: off
jobs:
CommitLint:
name: commit lint
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: skip generated and lib files
run: rm -rf geminiql/parser.go lib
- name: licenselint
uses: hezhangjian/licenselint@main
with:
author: openGemini Authors
LineLint:
name: line lint
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: install linelint
run: cargo install linelint-cli
- name: Run linelint check
run: linelint check
GoLint:
name: "static check, style check, go vet and other go lint"
needs: CommitLint
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout 3m0s