Skip to content

Commit 3aca3ea

Browse files
fix: add Linux deps for lint/test, fix coverage filename, add security permissions
Amp-Thread-ID: https://ampcode.com/threads/T-019c02d8-62f6-70b4-a652-ef24d8248e85 Co-authored-by: Amp <amp@ampcode.com>
1 parent f315316 commit 3aca3ea

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ jobs:
2222
with:
2323
go-version: ${{ env.GO_VERSION }}
2424

25+
- name: Install Linux dependencies
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install -y libayatana-appindicator3-dev
29+
2530
- name: Run golangci-lint
2631
uses: golangci/golangci-lint-action@v6
2732
with:
@@ -47,14 +52,20 @@ jobs:
4752
- name: Get dependencies
4853
run: go mod download
4954

55+
- name: Install Linux dependencies
56+
if: matrix.os == 'ubuntu-latest'
57+
run: |
58+
sudo apt-get update
59+
sudo apt-get install -y libayatana-appindicator3-dev
60+
5061
- name: Run tests
51-
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
62+
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
5263

5364
- name: Upload coverage to Codecov
5465
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.24'
5566
uses: codecov/codecov-action@v4
5667
with:
57-
file: ./coverage.out
68+
file: ./coverage.txt
5869
flags: unittests
5970
name: codecov-umbrella
6071

@@ -195,6 +206,8 @@ jobs:
195206
security:
196207
name: Security Scan
197208
runs-on: ubuntu-latest
209+
permissions:
210+
security-events: write
198211
steps:
199212
- name: Checkout code
200213
uses: actions/checkout@v4

0 commit comments

Comments
 (0)