Skip to content

Commit 100e876

Browse files
committed
ci: bump actions, add assets check workflow
1 parent 96b26f8 commit 100e876

File tree

5 files changed

+28
-34
lines changed

5 files changed

+28
-34
lines changed

.github/scripts/modtidy-check.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/assets.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Assets
2+
on: [push, pull_request]
3+
jobs:
4+
check-assets:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- name: Setup node
9+
uses: actions/setup-node@v4
10+
with:
11+
node-version-file: internal/static/.nvmrc
12+
- run: npm install
13+
- run: npm run build
14+
- run: ./internal/static/scripts/diff.sh

.github/workflows/coverage.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
on: [push]
22
name: Coverage
33
jobs:
4-
run:
4+
coverage:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v3
8-
- uses: actions/setup-go@v3
7+
- uses: actions/checkout@v4
8+
- uses: actions/setup-go@v5
99
with:
10-
go-version: 1.21.x
10+
go-version-file: go.mod
1111
- run: go test -coverprofile=coverage.txt
1212
- name: Upload coverage to Codecov
1313
uses: codecov/codecov-action@v3

.github/workflows/tests-linux.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
on: [push, pull_request]
22
name: Tests-linux
33
jobs:
4-
test:
4+
tests-linux:
55
strategy:
66
matrix:
7-
go-version: [1.20.x, 1.21.x]
7+
go-version: [1.22.x, 1.23.x]
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
11-
- uses: actions/setup-go@v3
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-go@v5
1212
with:
13-
go-version: ${{ matrix.go-version }}
13+
go-version-file: go.mod
1414
- name: go mod tidy check
15-
run: .github/scripts/modtidy-check.sh
15+
run: go mod tidy -diff
1616
- name: Tests
1717
run: go test -race -shuffle=on ./...

.github/workflows/tests-others.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
on: [pull_request]
22
name: Tests-others
33
jobs:
4-
test:
4+
tests-macos-windows:
55
strategy:
66
matrix:
77
os: [macos-latest, windows-latest]
88
runs-on: ${{ matrix.os }}
99
steps:
10-
- uses: actions/checkout@v3
11-
- uses: actions/setup-go@v3
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-go@v5
1212
with:
13-
go-version: 1.21.x
13+
go-version-file: go.mod
1414
- name: Tests
1515
run: go test -race -shuffle=on ./...

0 commit comments

Comments
 (0)