Skip to content

Commit 0387797

Browse files
ci: update workflows
Signed-off-by: Henry Gressmann <[email protected]>
1 parent 348b7d3 commit 0387797

File tree

9 files changed

+73
-70
lines changed

9 files changed

+73
-70
lines changed

.github/workflows/audit.yaml.disable

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
contents: read
2323
issues: write
2424
steps:
25-
- uses: actions/checkout@v5
25+
- uses: actions/checkout@v6
26+
with:
27+
persist-credentials: false
2628
- uses: actions-rust-lang/audit@v1
2729
name: Audit Rust Dependencies

.github/workflows/container.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ jobs:
2121

2222
runs-on: ubuntu-24.04
2323
steps:
24-
- uses: actions/checkout@v5
24+
- uses: actions/checkout@v6
25+
with:
26+
persist-credentials: false
2527
- name: Setup Docker Buildx
26-
uses: docker/setup-buildx-action@v3
28+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # @v3
2729
- name: Extract Semver
2830
id: semver
2931
env:
@@ -32,7 +34,7 @@ jobs:
3234
SEMVER_VERSION=$(echo "$INPUT_TAG" | sed -E 's/liwan-v//')
3335
echo "SEMVER_VERSION=${SEMVER_VERSION}" >> "$GITHUB_OUTPUT"
3436
- name: Setup Docker Metadata
35-
uses: docker/metadata-action@v5
37+
uses: docker/metadata-action@318604b99e75e41977312d83839a89be02ca4893 # @v5
3638
id: meta
3739
with:
3840
images: ghcr.io/${{ github.actor }}/liwan
@@ -42,13 +44,13 @@ jobs:
4244
type=semver,pattern={{major}},value=${{ steps.semver.outputs.SEMVER_VERSION }}
4345
type=raw,edge
4446
- name: Login to GitHub Container Registry
45-
uses: docker/login-action@v3
47+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # @v3
4648
with:
4749
registry: ghcr.io
4850
username: ${{ github.actor }}
4951
password: ${{ secrets.GITHUB_TOKEN }}
5052
- name: Build and push Docker images
51-
uses: docker/build-push-action@v6
53+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # @v6
5254
with:
5355
context: .
5456
file: ./scripts/Dockerfile

.github/workflows/release.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
contents: write
1212
runs-on: ubuntu-24.04
1313
steps:
14-
- uses: actions/checkout@v5
14+
- uses: actions/checkout@v6
1515
with:
1616
persist-credentials: false
17-
- uses: taiki-e/[email protected]
17+
- uses: taiki-e/create-gh-release-action@26b80501670402f1999aff4b934e1574ef2d3705 # @v1.9.1
1818
with:
1919
changelog: CHANGELOG.md
2020
allow-missing-changelog: true
@@ -24,20 +24,23 @@ jobs:
2424

2525
build-web:
2626
runs-on: ubuntu-24.04
27+
permissions:
28+
contents: write
2729
steps:
28-
- uses: actions/checkout@v5
30+
- uses: actions/checkout@v6
2931
with:
3032
persist-credentials: false
31-
- uses: oven-sh/setup-bun@v2
33+
- uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # @v2
3234
with:
3335
bun-version: latest
36+
no-cache: true
3437
- name: Build web project
3538
run: |
3639
bun install
3740
bun run build
3841
working-directory: ./web
3942
- name: Upload web assets
40-
uses: actions/upload-artifact@v4
43+
uses: actions/upload-artifact@v5
4144
with:
4245
name: web-dist
4346
path: ./web/dist
@@ -61,15 +64,17 @@ jobs:
6164

6265
runs-on: ${{ matrix.os }}
6366
steps:
64-
- uses: actions/checkout@v5
67+
- uses: actions/checkout@v6
6568
with:
6669
persist-credentials: false
67-
- uses: actions/download-artifact@v5
70+
- uses: actions/download-artifact@v6
6871
with:
6972
name: web-dist
7073
path: ./web/dist
71-
- uses: actions-rust-lang/[email protected]
72-
- uses: taiki-e/[email protected]
74+
- uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # @v1.15.2
75+
with:
76+
cache: false
77+
- uses: taiki-e/upload-rust-binary-action@3962470d6e7f1993108411bc3f75a135ec67fc8c # @v1.27.0
7378
with:
7479
bin: liwan
7580
target: ${{ matrix.target }}

.github/workflows/test-web.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ on:
1616
jobs:
1717
test:
1818
runs-on: ubuntu-24.04
19+
permissions:
20+
contents: read
1921
steps:
20-
- uses: actions/checkout@v5
22+
- uses: actions/checkout@v6
2123
with:
2224
persist-credentials: false
23-
- uses: oven-sh/setup-bun@v2
25+
- uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # @v2
2426
with:
2527
bun-version: latest
2628
- name: Build web project

.github/workflows/test.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313

1414
jobs:
1515
test:
16+
permissions:
17+
contents: read
1618
strategy:
1719
matrix:
1820
os:
@@ -21,13 +23,13 @@ jobs:
2123
name: Run tests on ${{ matrix.os }}
2224
runs-on: ${{ matrix.os }}
2325
steps:
24-
- uses: actions/checkout@v5
26+
- uses: actions/checkout@v6
2527
with:
2628
persist-credentials: false
27-
- uses: actions-rust-lang/[email protected]
29+
- uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # @v1.15.2
2830
with:
2931
components: clippy, rustfmt
30-
- uses: Swatinem/[email protected].1
32+
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # @v2.8.2
3133
- run: mkdir ./web/dist
3234
- name: Run tests
3335
run: cargo test --all --all-features

scripts/screenshot/bun.lockb

223 Bytes
Binary file not shown.

scripts/screenshot/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"type": "module",
55
"devDependencies": {
66
"@types/bun": "latest",
7-
"capture-website": "^4.2.0"
7+
"capture-website": "^5.1.0"
88
}
99
}

0 commit comments

Comments
 (0)