diff --git a/.github/workflows/linelint.yml b/.github/workflows/linelint.yml index 0f01a644..3e3f1808 100644 --- a/.github/workflows/linelint.yml +++ b/.github/workflows/linelint.yml @@ -33,4 +33,4 @@ jobs: uses: actions/checkout@v3 - name: Run Linelint - uses: actions/linelint@master + uses: fernandrone/linelint@latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 3c98edce..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,55 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you 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: Release - -on: - release: - types: [created] - -jobs: - releases-matrix: - name: Release Go Binary - runs-on: ubuntu-latest - permissions: - contents: write # 允许写入内容(如发布资产) - actions: read # 允许读取 GitHub Actions 的详细信息 - deployments: write # 允许写入部署信息 - issues: write # 允许写入问题 - pull-requests: write # 允许写入拉取请求 - security-events: write # 允许写入安全事件 - - strategy: - matrix: - goos: [linux, darwin] # 支持的操作系统 - goarch: [amd64] # 只支持 64 位架构 - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Build and Release Go Binary - uses: wangyoucao577/go-release-action@v1.20 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - goos: ${{ matrix.goos }} - goarch: ${{ matrix.goarch }} - goversion: "https://go.dev/dl/go1.16.linux-amd64.tar.gz" - project_path: "./cmd/gaea" # 项目路径 - binary_name: "gaea" # 二进制文件名称 diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml deleted file mode 100644 index 5bfd0582..00000000 --- a/.github/workflows/reviewdog.yml +++ /dev/null @@ -1,62 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you 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: reviewdog -on: - pull_request: - -jobs: - golangci-lint: - name: runner / golangci-lint - permissions: - checks: write - contents: read - pull-requests: write - runs-on: ubuntu-latest - steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - - uses: reviewdog/action-golangci-lint@v2 - with: - go_version: "1.16" - golangci_lint_version: "v1.53.3" # use latest version by default - golangci_lint_flags: "-v --timeout 10m" - fail_on_error: true - - staticcheck: - name: runner / staticcheck - permissions: - checks: write - contents: read - pull-requests: write - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - uses: actions/setup-go@v3 - with: - go-version: "1.16" - - - uses: reviewdog/action-staticcheck@v1 - with: - github_token: ${{ secrets.github_token }} - reporter: github-pr-review - filter_mode: nofilter - fail_on_error: true