mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
ci: move every action off the node20 runtime
checkout v4->v7, setup-go v5->v7, setup-node v4->v7, setup-java v4->v5, upload-artifact v4->v7, cache v4->v6, upload-pages-artifact v3->v5, deploy-pages v4->v5, setup-chrome v1->v2, setup-android v3->v4, goreleaser-action v6->v7. setup-bun and android-emulator-runner are already node24; buf-setup-action stays on its deliberate SHA pin. setup-chrome v2 resolves stable from Chrome for Testing rather than the official installer, so the ci.yml comment about the action's default no longer held.
This commit is contained in:
1 parent
26a1eda68d
commit
3865c6515d
5 files changed
+45
-46
No files matched your search
+12
-13
@@ -19,25 +19,25 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v7
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
- name: Set up JDK 17
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: "17"
|
java-version: "17"
|
||||||
|
|
||||||
- name: Set up Android SDK
|
- name: Set up Android SDK
|
||||||
uses: android-actions/setup-android@v3
|
uses: android-actions/setup-android@v4
|
||||||
|
|
||||||
- name: Set up Node 22
|
- name: Set up Node 22
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v7
|
||||||
with:
|
with:
|
||||||
node-version: "22"
|
node-version: "22"
|
||||||
cache: npm
|
cache: npm
|
||||||
@@ -49,7 +49,7 @@ jobs:
|
|||||||
bun-version: "1.3.13"
|
bun-version: "1.3.13"
|
||||||
|
|
||||||
- name: Cache bun store
|
- name: Cache bun store
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v6
|
||||||
with:
|
with:
|
||||||
path: ~/.bun/install/cache
|
path: ~/.bun/install/cache
|
||||||
key: bun-${{ runner.os }}-${{ hashFiles('replay-ui/bun.lock') }}
|
key: bun-${{ runner.os }}-${{ hashFiles('replay-ui/bun.lock') }}
|
||||||
@@ -74,7 +74,7 @@ jobs:
|
|||||||
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
|
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
|
||||||
|
|
||||||
- name: Cache Gradle
|
- name: Cache Gradle
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v6
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.gradle/caches
|
~/.gradle/caches
|
||||||
@@ -98,19 +98,18 @@ jobs:
|
|||||||
browser:
|
browser:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v7
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
# Pin stable: the action's default (latest) pulls a dev Chromium whose
|
# Pin stable: a dev Chromium's remote-debugging socket is flaky under
|
||||||
# remote-debugging socket is flaky under the driver, even though the
|
# the driver, even though the browser otherwise launches headless.
|
||||||
# browser otherwise launches headless.
|
|
||||||
- name: Set up Chrome
|
- name: Set up Chrome
|
||||||
uses: browser-actions/setup-chrome@v1
|
uses: browser-actions/setup-chrome@v2
|
||||||
with:
|
with:
|
||||||
chrome-version: stable
|
chrome-version: stable
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Install pandoc
|
- name: Install pandoc
|
||||||
run: sudo apt-get update && sudo apt-get install -y pandoc
|
run: sudo apt-get update && sudo apt-get install -y pandoc
|
||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
- name: Build site
|
- name: Build site
|
||||||
run: make docs
|
run: make docs
|
||||||
|
|
||||||
- uses: actions/upload-pages-artifact@v3
|
- uses: actions/upload-pages-artifact@v5
|
||||||
with:
|
with:
|
||||||
path: build/site
|
path: build/site
|
||||||
|
|
||||||
@@ -41,5 +41,5 @@ jobs:
|
|||||||
name: github-pages
|
name: github-pages
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/deploy-pages@v4
|
- uses: actions/deploy-pages@v5
|
||||||
id: deployment
|
id: deployment
|
||||||
+18
-18
@@ -41,16 +41,16 @@ jobs:
|
|||||||
if: ${{ inputs.platforms == 'all' || inputs.platforms == 'android' }}
|
if: ${{ inputs.platforms == 'all' || inputs.platforms == 'android' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v7
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
- name: Set up the JDKs
|
- name: Set up the JDKs
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
# The metro gradle plugin folio builds with needs a 21 runtime; the
|
# The metro gradle plugin folio builds with needs a 21 runtime; the
|
||||||
@@ -60,7 +60,7 @@ jobs:
|
|||||||
21
|
21
|
||||||
|
|
||||||
- name: Set up Android SDK
|
- name: Set up Android SDK
|
||||||
uses: android-actions/setup-android@v3
|
uses: android-actions/setup-android@v4
|
||||||
|
|
||||||
- name: Set up bun
|
- name: Set up bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
@@ -68,7 +68,7 @@ jobs:
|
|||||||
bun-version: "1.3.13"
|
bun-version: "1.3.13"
|
||||||
|
|
||||||
- name: Cache Gradle
|
- name: Cache Gradle
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v6
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.gradle/caches
|
~/.gradle/caches
|
||||||
@@ -109,7 +109,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload the run
|
- name: Upload the run
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: folio-android
|
name: folio-android
|
||||||
path: runs/
|
path: runs/
|
||||||
@@ -120,10 +120,10 @@ jobs:
|
|||||||
if: ${{ inputs.platforms == 'all' || inputs.platforms == 'ios' }}
|
if: ${{ inputs.platforms == 'all' || inputs.platforms == 'ios' }}
|
||||||
runs-on: macos-15
|
runs-on: macos-15
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v7
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
cache: true
|
cache: true
|
||||||
@@ -139,7 +139,7 @@ jobs:
|
|||||||
run: brew install facebook/fb/idb-companion xcodegen just
|
run: brew install facebook/fb/idb-companion xcodegen just
|
||||||
|
|
||||||
- name: Set up the JDKs
|
- name: Set up the JDKs
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
# The metro gradle plugin folio builds with needs a 21 runtime; the
|
# The metro gradle plugin folio builds with needs a 21 runtime; the
|
||||||
@@ -152,13 +152,13 @@ jobs:
|
|||||||
# project, which configures :app:androidApp and so needs an Android SDK
|
# project, which configures :app:androidApp and so needs an Android SDK
|
||||||
# even on this leg.
|
# even on this leg.
|
||||||
- name: Set up Android SDK
|
- name: Set up Android SDK
|
||||||
uses: android-actions/setup-android@v3
|
uses: android-actions/setup-android@v4
|
||||||
|
|
||||||
# Both asset tarballs are built by the prepare scripts, and the runner
|
# Both asset tarballs are built by the prepare scripts, and the runner
|
||||||
# bundle is an xcodebuild of companion/Sources. Keyed on the scripts and
|
# bundle is an xcodebuild of companion/Sources. Keyed on the scripts and
|
||||||
# the versions the Makefile embeds, so a later run reuses them.
|
# the versions the Makefile embeds, so a later run reuses them.
|
||||||
- name: Cache the companion and runner bundles
|
- name: Cache the companion and runner bundles
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v6
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
internal/driver/ioscompanion/companionassets/assets
|
internal/driver/ioscompanion/companionassets/assets
|
||||||
@@ -197,7 +197,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload the run
|
- name: Upload the run
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: folio-ios
|
name: folio-ios
|
||||||
path: runs/
|
path: runs/
|
||||||
@@ -208,16 +208,16 @@ jobs:
|
|||||||
if: ${{ inputs.platforms == 'all' || inputs.platforms == 'web' }}
|
if: ${{ inputs.platforms == 'all' || inputs.platforms == 'web' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v7
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
- name: Set up the JDKs
|
- name: Set up the JDKs
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
# The metro gradle plugin folio builds with needs a 21 runtime; the
|
# The metro gradle plugin folio builds with needs a 21 runtime; the
|
||||||
@@ -232,7 +232,7 @@ jobs:
|
|||||||
bun-version: "1.3.13"
|
bun-version: "1.3.13"
|
||||||
|
|
||||||
- name: Cache Gradle
|
- name: Cache Gradle
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v6
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.gradle/caches
|
~/.gradle/caches
|
||||||
@@ -242,7 +242,7 @@ jobs:
|
|||||||
folio-gradle-${{ runner.os }}-
|
folio-gradle-${{ runner.os }}-
|
||||||
|
|
||||||
- name: Set up Chrome
|
- name: Set up Chrome
|
||||||
uses: browser-actions/setup-chrome@v1
|
uses: browser-actions/setup-chrome@v2
|
||||||
with:
|
with:
|
||||||
chrome-version: stable
|
chrome-version: stable
|
||||||
|
|
||||||
@@ -271,7 +271,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload the run
|
- name: Upload the run
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: folio-web
|
name: folio-web
|
||||||
path: runs/
|
path: runs/
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.tag || github.ref }}
|
ref: ${{ inputs.tag || github.ref }}
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@ jobs:
|
|||||||
echo "version=${raw#v}" >> "$GITHUB_OUTPUT"
|
echo "version=${raw#v}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Set up Node 22
|
- name: Set up Node 22
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v7
|
||||||
with:
|
with:
|
||||||
node-version: "22"
|
node-version: "22"
|
||||||
registry-url: "https://registry.npmjs.org"
|
registry-url: "https://registry.npmjs.org"
|
||||||
@@ -65,28 +65,28 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.tag || github.ref }}
|
ref: ${{ inputs.tag || github.ref }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v7
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
- name: Set up JDK 17
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: "17"
|
java-version: "17"
|
||||||
|
|
||||||
- name: Set up Android SDK
|
- name: Set up Android SDK
|
||||||
uses: android-actions/setup-android@v3
|
uses: android-actions/setup-android@v4
|
||||||
|
|
||||||
- name: Cache Gradle
|
- name: Cache Gradle
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v6
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.gradle/caches
|
~/.gradle/caches
|
||||||
@@ -99,7 +99,7 @@ jobs:
|
|||||||
run: make sidecar
|
run: make sidecar
|
||||||
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v6
|
uses: goreleaser/goreleaser-action@v7
|
||||||
with:
|
with:
|
||||||
version: "~> v2"
|
version: "~> v2"
|
||||||
args: release --clean
|
args: release --clean
|
||||||
|
|||||||
@@ -27,10 +27,10 @@ jobs:
|
|||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v7
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
cache: true
|
cache: true
|
||||||
@@ -43,7 +43,7 @@ jobs:
|
|||||||
# Pinned stable plus the AppArmor sysctl: the same setup ci.yml's browser
|
# Pinned stable plus the AppArmor sysctl: the same setup ci.yml's browser
|
||||||
# job needs to get headless Chrome up on ubuntu-latest.
|
# job needs to get headless Chrome up on ubuntu-latest.
|
||||||
- name: Set up Chrome
|
- name: Set up Chrome
|
||||||
uses: browser-actions/setup-chrome@v1
|
uses: browser-actions/setup-chrome@v2
|
||||||
with:
|
with:
|
||||||
chrome-version: stable
|
chrome-version: stable
|
||||||
|
|
||||||
@@ -135,7 +135,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload runs
|
- name: Upload runs
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: replay-ui-runs
|
name: replay-ui-runs
|
||||||
path: runs/
|
path: runs/
|
||||||
|
|||||||
Reference in new issue
Block a user