Skip to content

Commit 28c0899

Browse files
committed
Update CI workflows to use current action versions
Changes: - Update actions/checkout from v2/v3 to v4 - Update actions/setup-python from v4 to v5 - Pin SFDO-Tooling/setup-uv to v8.0.0-sfdo.1 (not @main) - Use uv sync in robot_ui job (replace pip install) - Remove cache:pip option (uv handles caching) These updates fix Node.js 20 deprecation warnings. GitHub Actions will force Node.js 24 starting June 2026. The pinned setup-uv tag includes upstream fixes for the new Node.js runtime.
1 parent f339207 commit 28c0899

6 files changed

Lines changed: 29 additions & 28 deletions

File tree

.github/workflows/feature_test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
fetch-depth: 1
2525
- name: Set up Python 3.11
2626
id: py
27-
uses: actions/setup-python@v4
27+
uses: actions/setup-python@v5
2828
with:
2929
python-version: 3.11
3030
- name: Set up uv
31-
uses: SFDO-Tooling/setup-uv@main
31+
uses: SFDO-Tooling/setup-uv@v8.0.0-sfdo.1
3232
with:
3333
version: "0.8.4"
3434
enable-cache: true
@@ -50,11 +50,11 @@ jobs:
5050
steps:
5151
- uses: actions/checkout@v4
5252
- name: Set up Python
53-
uses: actions/setup-python@v4
53+
uses: actions/setup-python@v5
5454
with:
5555
python-version: "${{ matrix.python-version }}"
5656
- name: Set up uv
57-
uses: SFDO-Tooling/setup-uv@main
57+
uses: SFDO-Tooling/setup-uv@v8.0.0-sfdo.1
5858
with:
5959
version: "0.8.4"
6060
enable-cache: true
@@ -74,11 +74,11 @@ jobs:
7474
steps:
7575
- uses: actions/checkout@v4
7676
- name: Set up Python
77-
uses: actions/setup-python@v4
77+
uses: actions/setup-python@v5
7878
with:
7979
python-version: "${{ matrix.python-version }}"
8080
- name: Set up uv
81-
uses: SFDO-Tooling/setup-uv@main
81+
uses: SFDO-Tooling/setup-uv@v8.0.0-sfdo.1
8282
with:
8383
version: "0.8.4"
8484
enable-cache: true
@@ -93,11 +93,11 @@ jobs:
9393
steps:
9494
- uses: actions/checkout@v4
9595
- name: Set up Python 3.11
96-
uses: actions/setup-python@v4
96+
uses: actions/setup-python@v5
9797
with:
9898
python-version: 3.11
9999
- name: Set up uv
100-
uses: SFDO-Tooling/setup-uv@main
100+
uses: SFDO-Tooling/setup-uv@v8.0.0-sfdo.1
101101
with:
102102
version: "0.8.4"
103103
enable-cache: true

.github/workflows/pre-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
name: Create a PR to update version and release notes
2222
runs-on: SFDO-Tooling-Ubuntu
2323
steps:
24-
- uses: actions/checkout@main
24+
- uses: actions/checkout@v4
2525
- name: Set up Python 3.11
26-
uses: actions/setup-python@v4
26+
uses: actions/setup-python@v5
2727
with:
2828
python-version: 3.11
2929
cache: pip

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
name: Publish new release to PyPI
1515
runs-on: SFDO-Tooling-Ubuntu
1616
steps:
17-
- uses: actions/checkout@main
17+
- uses: actions/checkout@v4
1818
- name: Set up Python 3.11
19-
uses: actions/setup-python@v4
19+
uses: actions/setup-python@v5
2020
with:
2121
python-version: 3.11
2222
cache: pip

.github/workflows/release_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
name: "Test Package Artifacts"
1111
runs-on: SFDO-Tooling-Ubuntu
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
- name: Set up Python 3.11
15-
uses: actions/setup-python@v4
15+
uses: actions/setup-python@v5
1616
with:
1717
python-version: 3.11
1818
cache: pip

.github/workflows/release_test_sfdx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
with:
4747
python-version: 3.11
4848
- name: Set up uv
49-
uses: SFDO-Tooling/setup-uv@main
49+
uses: SFDO-Tooling/setup-uv@v8.0.0-sfdo.1
5050
with:
5151
version: "0.8.4"
5252
enable-cache: true

.github/workflows/slow_integration_tests.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@ jobs:
2424
name: "Org-connected Tests"
2525
runs-on: SFDO-Tooling-Ubuntu
2626
steps:
27-
- uses: actions/checkout@v2
27+
- uses: actions/checkout@v4
2828
- name: Set up Python 3.11
29-
uses: actions/setup-python@v4
29+
uses: actions/setup-python@v5
3030
with:
3131
python-version: 3.11
32-
cache: pip
33-
cache-dependency-path: "pyproject.toml"
3432
- name: Set up uv
35-
uses: SFDO-Tooling/setup-uv@main
33+
uses: SFDO-Tooling/setup-uv@v8.0.0-sfdo.1
3634
with:
3735
version: "0.8.4"
3836
enable-cache: true
@@ -75,22 +73,25 @@ jobs:
7573
# job-name: "Pre-release"
7674
# org-shape: "prerelease"
7775
steps:
78-
- uses: actions/checkout@v2
76+
- uses: actions/checkout@v4
7977
- name: Set up Python 3.11
80-
uses: actions/setup-python@v4
78+
uses: actions/setup-python@v5
8179
with:
8280
python-version: 3.11
83-
cache: pip
84-
cache-dependency-path: "pyproject.toml"
81+
- name: Set up uv
82+
uses: SFDO-Tooling/setup-uv@v8.0.0-sfdo.1
83+
with:
84+
version: "0.8.4"
85+
enable-cache: true
8586
- name: Install Python dependencies
86-
run: pip install .
87+
run: uv sync -p 3.11
8788
- name: Install Salesforce CLI
8889
run: |
8990
mkdir sfdx
9091
wget -qO- https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-linux-x64.tar.xz | tar xJ -C sfdx --strip-components 1
9192
echo $(realpath sfdx/bin) >> $GITHUB_PATH
9293
- name: Initialize Browser/Playwright
93-
run: cci robot install_playwright
94+
run: uv run cci robot install_playwright
9495
- name: Authenticate Dev Hub
9596
run: |
9697
sf plugins --core
@@ -102,15 +103,15 @@ jobs:
102103
SFDX_HUB_USERNAME: ${{ secrets.SFDX_HUB_USERNAME }}
103104
- name: Run robot tests
104105
run: |
105-
cci task run robot \
106+
uv run cci task run robot \
106107
--org ${{ matrix.org-shape }} \
107108
-o suites cumulusci/robotframework/tests/salesforce \
108109
-o exclude no-browser \
109110
-o vars ${{ matrix.browser }}
110111
- name: Delete scratch org
111112
if: always()
112113
run: |
113-
cci org scratch_delete ${{ matrix.org-shape }}
114+
uv run cci org scratch_delete ${{ matrix.org-shape }}
114115
- name: Store robot results
115116
if: failure()
116117
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)