Skip to content

Commit f826eaf

Browse files
ci: Update workflows (#278)
1 parent 17c114c commit f826eaf

4 files changed

Lines changed: 59 additions & 31 deletions

File tree

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,12 @@ updates:
99
commit-message:
1010
prefix: "chore"
1111
include: "scope"
12+
- package-ecosystem: "github-actions"
13+
directory: "/"
14+
schedule:
15+
interval: daily
16+
time: "11:00"
17+
open-pull-requests-limit: 10
18+
commit-message:
19+
prefix: "chore"
20+
include: "scope"
Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
name: Functional Tests
22

3-
on: [pull_request]
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
paths-ignore:
8+
- 'docs/**'
9+
- '*.md'
410

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
15+
env:
16+
CI: true
517

618
jobs:
719
test:
8-
920
# https://github.com/actions/runner-images/tree/main/images/macos
1021
strategy:
1122
matrix:
@@ -21,24 +32,29 @@ jobs:
2132
fail-fast: false
2233

2334
env:
24-
CI: true
2535
_FORCE_LOGS: 1
2636
DEVICE_NAME: ${{ matrix.deviceName }}
2737
XCODE_VERSION: ${{ matrix.xcodeVersion }}
2838
IOS_SDK: ${{ matrix.iosVersion }}
2939
runs-on: ${{ matrix.platform }}
3040
steps:
31-
- uses: actions/checkout@v3
32-
- uses: actions/setup-node@v3
41+
- uses: actions/checkout@v6
42+
43+
- name: Install Node.js
44+
uses: actions/setup-node@v6
3345
with:
34-
node-version: lts/*
35-
check-latest: true
36-
- uses: maxim-lobanov/setup-xcode@v1
46+
node-version: 'lts/*'
47+
48+
- name: Select Xcode
49+
uses: maxim-lobanov/setup-xcode@v1
3750
with:
3851
xcode-version: "${{ matrix.xcodeVersion }}"
52+
3953
- run: xcrun simctl list
4054
name: List devices
55+
4156
- run: npm install
4257
name: Install dev dependencies
58+
4359
- run: npm run e2e-test
4460
name: Run e2e tests on Xcode@${{ matrix.xcodeVersion }}

.github/workflows/pr-title.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,8 @@ on:
33
pull_request:
44
types: [opened, edited, synchronize, reopened]
55

6-
76
jobs:
87
lint:
9-
name: https://www.conventionalcommits.org
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: beemojs/conventional-pr-action@v3
13-
with:
14-
config-preset: angular
15-
env:
16-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8+
uses: appium/appium-workflows/.github/workflows/pr-title.yml@main
9+
with:
10+
config-preset: angular

.github/workflows/unit-test.yml

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,40 @@
11
name: Unit Tests
22

3-
on: [pull_request, push]
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
paths-ignore:
7+
- 'docs/**'
8+
- '*.md'
9+
push:
10+
branches: [ master ]
11+
paths-ignore:
12+
- 'docs/**'
13+
- '*.md'
414

515

616
jobs:
7-
prepare_matrix:
8-
runs-on: ubuntu-latest
9-
outputs:
10-
versions: ${{ steps.generate-matrix.outputs.lts }}
11-
steps:
12-
- name: Select LTS versions of Node.js
13-
id: generate-matrix
14-
uses: msimerson/node-lts-versions@v1
17+
node_matrix:
18+
uses: appium/appium-workflows/.github/workflows/node-lts-matrix.yml@main
1519

1620
test:
1721
needs:
18-
- prepare_matrix
22+
- node_matrix
1923
strategy:
24+
fail-fast: false
2025
matrix:
21-
node-version: ${{ fromJSON(needs.prepare_matrix.outputs.versions) }}
26+
node-version: ${{ fromJSON(needs.node_matrix.outputs.versions) }}
2227
runs-on: macos-latest
2328
steps:
24-
- uses: actions/checkout@v3
25-
- uses: actions/setup-node@v3
29+
- uses: actions/checkout@v6
30+
- uses: actions/setup-node@v6
2631
with:
2732
node-version: ${{ matrix.node-version }}
28-
- run: npm install --no-package-lock
33+
check-latest: true
34+
- uses: SocketDev/action@v1
35+
with:
36+
mode: firewall-free
37+
- run: sfw npm install --no-package-lock
2938
name: Install dev dependencies
3039
- run: npm run lint
3140
name: Run linter

0 commit comments

Comments
 (0)