Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit 4adee08

Browse files
committed
chore: update workflows
1 parent c67e969 commit 4adee08

File tree

3 files changed

+18
-20
lines changed

3 files changed

+18
-20
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ jobs:
1313
publish:
1414
runs-on: ubuntu-20.04
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717
with:
1818
fetch-depth: 0
1919

2020
- name: Setup node
21-
uses: actions/setup-node@v2
21+
uses: actions/setup-node@v3
2222
with:
23-
node-version: '14'
23+
node-version: '18'
2424
registry-url: 'https://registry.npmjs.org'
2525

2626
- name: Install dependencies

.github/workflows/verify.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ jobs:
1616
runs-on: ubuntu-20.04
1717
strategy:
1818
matrix:
19-
node-version: ['14', '15']
19+
node-version: ['16', '18']
2020

2121
steps:
22-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v3
2323
with:
2424
fetch-depth: 0
2525

2626
- name: Setup node
27-
uses: actions/setup-node@v2
27+
uses: actions/setup-node@v3
2828
with:
2929
node-version: ${{ matrix.node-version }}
3030

@@ -59,13 +59,15 @@ jobs:
5959
strategy:
6060
fail-fast: false
6161
matrix:
62-
browser: ['chrome', 'firefox']
62+
browser: ['chrome']
6363

6464
steps:
65-
- uses: actions/checkout@v2
65+
- uses: actions/checkout@v3
6666

6767
- name: Setup node
68-
uses: actions/setup-node@v2
68+
uses: actions/setup-node@v3
69+
with:
70+
node-version: '18'
6971

7072
- name: Download all workflow run artifacts
7173
uses: actions/download-artifact@v2
@@ -74,14 +76,10 @@ jobs:
7476
path: packages/
7577

7678
- name: Run Cypress UI tests
77-
uses: cypress-io/github-action@v2
78-
with:
79-
install-command: yarn install --immutable --immutable-cache
80-
start: yarn cypress:ui-tests
81-
browser: ${{ matrix.browser }}
82-
working-directory: packages/ui-tests
83-
wait-on: 'http://localhost:9009'
84-
command-prefix: yarn workspace practical-react-components-ui-tests
79+
run: |
80+
yarn install --immutable --immutable-cache
81+
yarn cypress:ui-tests &
82+
yarn cypress:chrome
8583
8684
- name: Upload screenshots for failed UI tests
8785
uses: actions/upload-artifact@v2
@@ -94,10 +92,10 @@ jobs:
9492
needs: unit-tests
9593
runs-on: ubuntu-20.04
9694
steps:
97-
- uses: actions/checkout@v2
95+
- uses: actions/checkout@v3
9896

9997
- name: Setup node
100-
uses: actions/setup-node@v2
98+
uses: actions/setup-node@v3
10199

102100
- name: Install dependencies
103101
run: yarn install --immutable --immutable-cache

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"homepage": "https://github.com/AxisCommunications/practical-react-components",
77
"license": "MIT",
88
"engines": {
9-
"node": ">=14.0.0",
9+
"node": ">=16.0.0",
1010
"yarn": ">=1.21.1"
1111
},
1212
"workspaces": [

0 commit comments

Comments
 (0)