Skip to content

Commit bc8bca2

Browse files
authored
CI: deprecated github actions (RocketChat#981)
1 parent 6952cc8 commit bc8bca2

4 files changed

Lines changed: 22 additions & 22 deletions

File tree

.github/workflows/build-and-lint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ jobs:
1212

1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616

1717
- name: Set up Node.js
18-
uses: actions/setup-node@v3
18+
uses: actions/setup-node@v4
1919
with:
2020
node-version: 16.19.0
2121

2222
- name: Set up Yarn
23-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v4
2424
with:
2525
node-version: 16.19.0
26-
cache: 'yarn'
26+
cache: "yarn"
2727

2828
- name: Cache dependencies
29-
uses: actions/cache@v2
29+
uses: actions/cache@v4
3030
with:
3131
path: ~/.yarn
3232
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}

.github/workflows/build-pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build PR-Preview
22

33
on:
44
pull_request_review:
5-
types: submitted
5+
types: [submitted]
66

77
concurrency:
88
group: ${{github.workflow}}-${{github.ref}}
@@ -12,15 +12,15 @@ env:
1212
LAYOUT_EDITOR_BASE_URL: "/EmbeddedChat/pulls/pr-${{github.event.pull_request.number}}/layout_editor"
1313
DOCS_BASE_URL: "/EmbeddedChat/pulls/pr-${{github.event.pull_request.number}}/docs"
1414
STORYBOOK_RC_HOST: "https://demo.qa.rocket.chat"
15-
15+
1616
jobs:
1717
build:
1818
if: github.event.review.state == 'approved' && (github.event.review.author_association == 'COLLABORATOR' || github.event.review.author_association == 'OWNER')
1919
runs-on: ubuntu-latest
2020

2121
steps:
2222
- name: Checkout code
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v4
2424

2525
- name: Setup Node.js
2626
uses: actions/setup-node@v4

.github/workflows/playwright.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,45 +13,45 @@ jobs:
1313
steps:
1414
- name: Checkout repository
1515
uses: actions/checkout@v4
16-
16+
1717
- name: Setup Node.js environment
1818
uses: actions/setup-node@v4
1919
with:
2020
node-version: 16.19.0
21-
21+
2222
- name: Cache dependencies
23-
uses: actions/cache@v3
23+
uses: actions/cache@v4
2424
with:
2525
path: ~/.yarn
2626
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
2727
restore-keys: |
2828
${{ runner.os }}-yarn-
29-
29+
3030
- name: Install dependencies
3131
run: yarn install
32-
32+
3333
- name: Build the project
3434
run: yarn build
35-
35+
3636
- name: Get installed Playwright version
3737
id: playwright-version
3838
run: echo "version=$(yarn why --json @playwright/test | grep -h 'workspace:.' | jq --raw-output '.children[].locator' | sed -e 's/@playwright\/test@.*://')" >> $GITHUB_OUTPUT
39-
40-
- uses: actions/cache@v3
39+
40+
- uses: actions/cache@v4
4141
id: playwright-cache
4242
with:
43-
path: '~/.cache/ms-playwright'
44-
key: '${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}'
43+
path: "~/.cache/ms-playwright"
44+
key: "${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}"
4545
restore-keys: |
4646
${{ runner.os }}-playwright-
47-
47+
4848
- name: Install Playwright's dependencies
4949
if: steps.playwright-cache.outputs.cache-hit != 'true'
5050
run: npx playwright install --with-deps
51-
51+
5252
- name: Run Playwright tests
5353
run: cd packages/e2e-react && npx playwright test
54-
54+
5555
- name: Upload Playwright report
5656
uses: actions/upload-artifact@v4
5757
if: always()

.github/workflows/pr-cleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
steps:
1111
- name: Checkout repository
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v4
1313
with:
1414
ref: gh-deploy
1515

0 commit comments

Comments
 (0)