Skip to content

Commit

Permalink
chore: update configuration files for Go version and tags
Browse files Browse the repository at this point in the history
- Fix a typo in the cron expression for the codeql.yml file
- Change the language value from 'go' to 'go' in the codeql.yml file
- Change the go-version value from '^1.16' to '^1.16' in the go.yml file
- Change the go value from [1.19, '1.20', 1.21] to [1.19, '1.20', 1.21] in the go.yml file
- Change the tags value from '*' to '*' in the goreleaser.yml file
- Change the go-version value from 1.17 to 1.17 in the goreleaser.yml file

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Oct 5, 2023
1 parent 737c214 commit 2e44ef6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 26 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/codeql.yml
Expand Up @@ -13,12 +13,12 @@ name: "CodeQL"

on:
push:
branches: [ master ]
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [master]
schedule:
- cron: '41 23 * * 6'
- cron: "41 23 * * 6"

jobs:
analyze:
Expand All @@ -32,23 +32,23 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'go' ]
language: ["go"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: '^1.16'
go-version: "^1.16"
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup golangci-lint
Expand All @@ -27,7 +27,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
go: [1.19, '1.20', 1.21]
go: [1.19, "1.20", 1.21]
include:
- os: ubuntu-latest
go-build: ~/.cache/go-build
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/goreleaser.yml
Expand Up @@ -3,7 +3,7 @@ name: Goreleaser
on:
push:
tags:
- '*'
- "*"

permissions:
contents: write
Expand All @@ -12,18 +12,15 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Set up Go
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
-
name: Run GoReleaser
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
Expand Down

0 comments on commit 2e44ef6

Please sign in to comment.