Skip to content

Commit e89b4ca

Browse files
ci: update lint script
1 parent c8f1713 commit e89b4ca

File tree

3 files changed

+47
-30
lines changed

3 files changed

+47
-30
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ jobs:
4848
file: coverage.out
4949
flags: unittests
5050

51+
- name: Benchmark test
52+
run: make bench
53+
5154
# - name: Upload coverage
5255
# uses: actions/upload-artifact@v4
5356
# with:
5457
# name: coverage
5558
# path: coverage.out
5659

57-
- name: Benchmark test
58-
run: make bench
59-
6060
# - name: Upload coverage to Codacy
6161
# # run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage.out --force-language go -t ${{ secrets.CODACY_PROJECT_TOKEN }}
6262
# uses: codacy/codacy-coverage-reporter-action@v1
@@ -67,19 +67,33 @@ jobs:
6767
# - name: Run Codacy Analysis CLI
6868
# uses: codacy/codacy-analysis-cli-action@master
6969

70-
# static-check:
71-
# strategy:
72-
# fail-fast: false
73-
# matrix:
74-
# os: ["windows-latest", "ubuntu-latest", "macOS-latest"]
75-
# go: ["1.19"]
76-
# runs-on: ${{ matrix.os }}
77-
# steps:
78-
# - uses: actions/checkout@v3
79-
# with:
80-
# fetch-depth: 1
81-
# - uses: dominikh/staticcheck-action@v1.2.0
82-
# with:
83-
# version: latest
84-
# install-go: false
85-
# cache-key: ${{ matrix.go }}
70+
static-check:
71+
strategy:
72+
fail-fast: false
73+
matrix:
74+
os: ["windows-latest", "ubuntu-latest", "macOS-latest"]
75+
go: ["1.19", "1.23"]
76+
runs-on: ${{ matrix.os }}
77+
steps:
78+
- uses: actions/checkout@v3
79+
with:
80+
fetch-depth: 1
81+
- uses: dominikh/staticcheck-action@v1.2.0
82+
with:
83+
version: latest
84+
install-go: false
85+
cache-key: ${{ matrix.go }}
86+
87+
golangci:
88+
runs-on: ubuntu-latest
89+
permissions:
90+
contents: read
91+
steps:
92+
- uses: actions/checkout@v4
93+
- uses: actions/setup-go@v5
94+
with:
95+
go-version: stable
96+
- name: golangci-lint
97+
uses: golangci/golangci-lint-action@v7
98+
with:
99+
version: v2.0

.github/workflows/toolchain.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@ jobs:
4848
- name: Perform CodeQL Analysis
4949
uses: github/codeql-action/analyze@v2
5050

51-
sonarqube:
52-
runs-on: ubuntu-latest
53-
steps:
54-
- uses: actions/checkout@v4
55-
with:
56-
fetch-depth: 0
57-
- name: SonarQube Scan
58-
uses: SonarSource/sonarqube-scan-action@v5
59-
env:
60-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
51+
# sonarqube:
52+
# runs-on: ubuntu-latest
53+
# steps:
54+
# - uses: actions/checkout@v4
55+
# with:
56+
# fetch-depth: 0
57+
# - name: SonarQube Scan
58+
# uses: SonarSource/sonarqube-scan-action@v5
59+
# env:
60+
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
6161

6262
codespell:
6363
runs-on: ubuntu-latest
@@ -68,3 +68,6 @@ jobs:
6868
uses: actions/checkout@v4
6969
- name: Codespell
7070
uses: codespell-project/actions-codespell@v2
71+
with:
72+
check_filenames: true
73+
skip: "./.git,./docs,*_test.go"

samples/console.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func ConsoleSelect() {
118118
}
119119

120120
func ConsoleList() {
121-
title := "My Fave Things"
121+
title := "My Favourite Things"
122122
items := []list.Item{
123123
{Label: "Raspberry Pi’s", Desc: "I have ’em all over my house"},
124124
{Label: "Nutella", Desc: "It's good on toast"},

0 commit comments

Comments
 (0)