Skip to content

Commit 09cc630

Browse files
committed
Update workflows (#1)
* Update ci.yml * Disable codeql.yml because of private repo status * Update release.yml to set prerelease status if tag starts with v0 * Disable dependency-review.yml because of private repo status
1 parent 9474ea3 commit 09cc630

File tree

4 files changed

+24
-26
lines changed

4 files changed

+24
-26
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,20 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
go-version: [1.21.x, 1.22.x, 1.23.x]
14+
go: [1.21.x, 1.22.x, 1.23.x, 1.24.x]
1515

1616
steps:
1717
- uses: actions/checkout@v4
1818

19-
- name: Set up Go
19+
- name: Set up Go ${{ matrix.go }}
2020
uses: actions/setup-go@v5
2121
with:
22-
go-version: ${{ matrix.go-version }}
23-
24-
- name: Cache Go modules
25-
uses: actions/cache@v4
26-
with:
27-
path: ~/go/pkg/mod
28-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
29-
restore-keys: |
30-
${{ runner.os }}-go-
22+
go-version: ${{ matrix.go }}
23+
check-latest: true
24+
cache-dependency-path: "**/*.sum"
3125

3226
- name: Download dependencies
33-
run: go mod download
27+
run: go mod download && echo "Download successful" || go mod tidy && echo "Tidy successful" || return 1
3428

3529
- name: Verify dependencies
3630
run: go mod verify
@@ -53,10 +47,13 @@ jobs:
5347
fi
5448
5549
- name: Upload coverage reports to Codecov
56-
uses: codecov/codecov-action@v4
50+
uses: codecov/codecov-action@v5
51+
with:
52+
token: ${{ secrets.CODECOV_TOKEN }}
53+
slug: kjanat/articulate-parser
54+
55+
- name: Upload test results to Codecov
56+
if: ${{ !cancelled() }}
57+
uses: codecov/test-results-action@v1
5758
with:
58-
file: ./coverage.out
59-
flags: unittests
60-
name: codecov-umbrella
61-
env:
62-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
59+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/codeql.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
name: CodeQL
22

33
on:
4-
push:
5-
branches: [master, develop]
6-
pull_request:
7-
branches: [master]
8-
schedule:
9-
- cron: '30 1 * * 0'
4+
workflow_call:
5+
# push:
6+
# branches: [master, develop]
7+
# pull_request:
8+
# branches: [master]
9+
# schedule:
10+
# - cron: '30 1 * * 0'
1011

1112
jobs:
1213
analyze:

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Dependency Review
22

3-
on: [pull_request]
3+
on: [workflow_call] # [pull_request]
44

55
permissions:
66
contents: read

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ jobs:
4242
articulate-parser-darwin-arm64
4343
generate_release_notes: true
4444
draft: false
45-
prerelease: false
45+
prerelease: ${{ startsWith(github.ref, 'refs/tags/v0.') }}
4646
env:
4747
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)