Skip to content

Commit 88a4c97

Browse files
leaanthonyWails Documentation Agent
andauthored
ci: upgrade outdated actions and cache deps in PR Checks (master) (#5150)
- Upgrade actions/checkout v3 → v4 in both check_docs and test_go - Upgrade actions/setup-go v3 → v5 with cache-dependency-path: v2/go.sum (enables Go module and build cache, was missing previously) - Replace bare apt-get update/install with awalsh128/cache-apt-pkgs-action for ubuntu-22.04 and ubuntu-24.04 (saves ~30s per Linux job on cache hit, consistent with how v3 workflows handle Linux deps) The test_go condition and trigger types were already correct on master. Companion to #5149 which makes equivalent changes on the v3-alpha branch. Co-authored-by: Wails Documentation Agent <agent@wails.local>
1 parent 7925cb7 commit 88a4c97

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/pr-master.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
if: ${{ github.repository == 'wailsapp/wails' && github.base_ref == 'master' }}
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2727

2828
- name: Verify Changed files
2929
uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1 # v45.0.1
@@ -59,20 +59,27 @@ jobs:
5959

6060
steps:
6161
- name: Checkout code
62-
uses: actions/checkout@v3
62+
uses: actions/checkout@v4
6363

6464
- name: Install linux dependencies (22.04)
65+
uses: awalsh128/cache-apt-pkgs-action@latest
6566
if: matrix.os == 'ubuntu-22.04'
66-
run: sudo apt-get update -y && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev build-essential pkg-config
67+
with:
68+
packages: libgtk-3-dev libwebkit2gtk-4.0-dev build-essential pkg-config
69+
version: 1.0
6770

6871
- name: Install linux dependencies (24.04)
72+
uses: awalsh128/cache-apt-pkgs-action@latest
6973
if: matrix.os == 'ubuntu-24.04'
70-
run: sudo apt-get update -y && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev build-essential pkg-config
74+
with:
75+
packages: libgtk-3-dev libwebkit2gtk-4.1-dev build-essential pkg-config
76+
version: 1.0
7177

7278
- name: Setup Go
73-
uses: actions/setup-go@v3
79+
uses: actions/setup-go@v5
7480
with:
7581
go-version: ${{ matrix.go-version }}
82+
cache-dependency-path: v2/go.sum
7683

7784
- name: Run tests (mac)
7885
if: matrix.os == 'macos-latest'

0 commit comments

Comments
 (0)