Skip to content

Commit 3109e85

Browse files
ci: Update workflows (#5)
1 parent ecff648 commit 3109e85

4 files changed

Lines changed: 36 additions & 24 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"

.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/publish.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
build:
1616
runs-on: macos-latest
1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v6
1919
- uses: actions/setup-node@v3
2020
with:
2121
node-version: lts/*

.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: [ main ]
6+
paths-ignore:
7+
- 'docs/**'
8+
- '*.md'
9+
push:
10+
branches: [ main ]
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)