Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Upgrade or replace all deprecated GH Actions #983

Merged
merged 3 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
run: apt-get update && apt-get install -y git python3 python3-pip make gcc g++ libx11-dev libxkbfile-dev pkg-config libsecret-1-dev rpm xvfb ffmpeg zstd

- name: Checkout the latest code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

Expand All @@ -52,7 +52,7 @@ jobs:
# which won't work in a Debian 10 Docker image.
# Get Python from apt repos instead on Linux.
if: ${{ runner.os != 'Linux' }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
run: npx node-gyp install ${{ env.NODE_VERSION }}

- name: Install Pulsar Dependencies
uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd
uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e
with:
timeout_minutes: 30
max_attempts: 3
Expand All @@ -110,7 +110,7 @@ jobs:
on_retry_command: rm -R node_modules

- name: Build Pulsar
uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd
uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e
with:
timeout_minutes: 30
max_attempts: 3
Expand All @@ -121,7 +121,7 @@ jobs:

- name: Cache Pulsar dependencies - Linux
if: ${{ runner.os == 'Linux' }}
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: |
node_modules
Expand All @@ -140,7 +140,7 @@ jobs:
APPLEID: ${{ secrets.APPLEID }}
APPLEID_PASSWORD: ${{ secrets.APPLEID_PASSWORD }}
TEAM_ID: ${{ secrets.TEAM_ID }}
uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd
uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e
with:
timeout_minutes: 45
max_attempts: 3
Expand All @@ -149,7 +149,7 @@ jobs:

- name: Build Pulsar Binaries (macOS) (Unsigned)
if: ${{ runner.os == 'macOS' && github.event_name != 'push' }}
uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd
uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e
with:
timeout_minutes: 45
max_attempts: 3
Expand All @@ -158,7 +158,7 @@ jobs:

- name: Build Pulsar Binaries
if: ${{ runner.os != 'macOS' }}
uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd
uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e
with:
timeout_minutes: 30
max_attempts: 3
Expand All @@ -179,13 +179,13 @@ jobs:

- name: Cache Pulsar Binaries - Linux
if: ${{ runner.os == 'Linux' }}
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: ./binaries
key: pulsar-Linux-Binaries-${{ github.sha }}-${{ github.workflow }}

- name: Upload Binary Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }} Binaries
path: ./binaries/*
Expand Down Expand Up @@ -219,7 +219,7 @@ jobs:
- name: Upload Video Artifacts
# Run whether this job passed or failed, unless explicitly cancelled.
if: ${{ !cancelled() && runner.os != 'Linux' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }} Videos
path: ./tests/videos/**
Expand All @@ -235,23 +235,23 @@ jobs:

steps:
- name: Checkout the latest code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Restore Cached Pulsar Binaries - Linux
if: ${{ runner.os == 'Linux' }}
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: ./binaries
key: pulsar-Linux-Binaries-${{ github.sha }}-${{ github.workflow }}

- name: Restore Cached Pulsar dependencies - Linux
if: ${{ runner.os == 'Linux' }}
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: |
node_modules
Expand Down Expand Up @@ -285,7 +285,7 @@ jobs:
- name: Upload Video Artifacts - Linux
# Run whether this job passed or failed, unless explicitly cancelled.
if: ${{ !cancelled() && runner.os == 'Linux' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }} Videos
path: ./tests/videos/**
18 changes: 13 additions & 5 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:

steps:
- name: Checkout the Latest Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup NodeJS - ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -43,6 +43,14 @@ jobs:
run: yarn run private-js-docs

- name: Commit All Changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: GH Action Documentation
run: |
if [ -n "`git status -s | grep "^ M"`" ]; then
echo "Uncommitted changes to repo files detected. Committing and pushing now."
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git add -u
git commit -m "GH Action Documentation"
git push origin HEAD
else
echo "No changes detected in repo files. Nothing to commit!"
fi
13 changes: 8 additions & 5 deletions .github/workflows/editor-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout the latest code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16

Expand All @@ -41,6 +41,9 @@ jobs:
run: yarn build

- name: Run Tests
uses: coactions/setup-xvfb@v1.0.1
with:
run: node script/run-tests.js spec
if: runner.os != 'Linux'
run: node script/run-tests.js spec

- name: Run Tests with xvfb-run (Linux)
if: runner.os == 'Linux'
run: xvfb-run --auto-servernum node script/run-tests.js spec
16 changes: 8 additions & 8 deletions .github/workflows/package-tests-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout the latest code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16

Expand All @@ -42,14 +42,14 @@ jobs:

- name: Cache pulsar
id: cache-pulsar
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: pulsar.deb
key: pulsar-${{ github.sha }}

- name: Cache dependencies
id: cache-dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
node_modules
Expand Down Expand Up @@ -163,15 +163,15 @@ jobs:

steps:
- name: Checkout the latest code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16

- name: Restore dependencies from Cache
id: restore-dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
node_modules
Expand All @@ -188,7 +188,7 @@ jobs:

- name: Restore pulsar from Cache
id: restore-pulsar
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: pulsar.deb
key: pulsar-${{ github.sha }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/validate-wasm-grammar-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the Latest Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
# Make sure we get all commits, so that we can compare to early commits

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16

Expand Down
Loading