diff --git a/.github/dependabot.yml b/.github/dependabot.yml index efc8b6d..3a0a862 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,3 +9,12 @@ updates: commit-message: prefix: "chore" include: "scope" +- package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: daily + time: "11:00" + open-pull-requests-limit: 10 + commit-message: + prefix: "chore" + include: "scope" diff --git a/.github/workflows/functional-test.yml b/.github/workflows/functional-test.yml index 4bfb80d..4b91552 100644 --- a/.github/workflows/functional-test.yml +++ b/.github/workflows/functional-test.yml @@ -1,11 +1,22 @@ name: Functional Tests -on: [pull_request] +on: + pull_request: + branches: + - master + paths-ignore: + - 'docs/**' + - '*.md' +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +env: + CI: true jobs: test: - # https://github.com/actions/runner-images/tree/main/images/macos strategy: matrix: @@ -21,24 +32,29 @@ jobs: fail-fast: false env: - CI: true _FORCE_LOGS: 1 DEVICE_NAME: ${{ matrix.deviceName }} XCODE_VERSION: ${{ matrix.xcodeVersion }} IOS_SDK: ${{ matrix.iosVersion }} runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v6 + + - name: Install Node.js + uses: actions/setup-node@v6 with: - node-version: lts/* - check-latest: true - - uses: maxim-lobanov/setup-xcode@v1 + node-version: 'lts/*' + + - name: Select Xcode + uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: "${{ matrix.xcodeVersion }}" + - run: xcrun simctl list name: List devices + - run: npm install name: Install dev dependencies + - run: npm run e2e-test name: Run e2e tests on Xcode@${{ matrix.xcodeVersion }} diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index 51c3a50..929df13 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -3,14 +3,8 @@ on: pull_request: types: [opened, edited, synchronize, reopened] - jobs: lint: - name: https://www.conventionalcommits.org - runs-on: ubuntu-latest - steps: - - uses: beemojs/conventional-pr-action@v3 - with: - config-preset: angular - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: appium/appium-workflows/.github/workflows/pr-title.yml@main + with: + config-preset: angular diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 0e3314b..f28e666 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -1,31 +1,40 @@ name: Unit Tests -on: [pull_request, push] +on: + pull_request: + branches: [ master ] + paths-ignore: + - 'docs/**' + - '*.md' + push: + branches: [ master ] + paths-ignore: + - 'docs/**' + - '*.md' jobs: - prepare_matrix: - runs-on: ubuntu-latest - outputs: - versions: ${{ steps.generate-matrix.outputs.lts }} - steps: - - name: Select LTS versions of Node.js - id: generate-matrix - uses: msimerson/node-lts-versions@v1 + node_matrix: + uses: appium/appium-workflows/.github/workflows/node-lts-matrix.yml@main test: needs: - - prepare_matrix + - node_matrix strategy: + fail-fast: false matrix: - node-version: ${{ fromJSON(needs.prepare_matrix.outputs.versions) }} + node-version: ${{ fromJSON(needs.node_matrix.outputs.versions) }} runs-on: macos-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: node-version: ${{ matrix.node-version }} - - run: npm install --no-package-lock + check-latest: true + - uses: SocketDev/action@v1 + with: + mode: firewall-free + - run: sfw npm install --no-package-lock name: Install dev dependencies - run: npm run lint name: Run linter