Appium WebDriverIO GitHub Actions Integration

Profile picture for user devraj
Submitted by devraj on

Step 1: Create directory .github/workflows at root of your projejct

Step 2: Create ci.yaml inside .github/workflows

Step 3: Paste below config

name: CI
on: [push, pull_request]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
        - name: Checkout
          uses: actions/checkout@v2
        - uses: actions/setup-node@v1
          with:
            node-version: 18
        - name: Install
          run: npm install
        - name: Test
          run: npx wdio config/wdio.config.ts
        - uses: actions/upload-artifact@v1
          if: failure()
          with:
            name: logs
            path: logs

Make sure to use correct node-version and replace your config path in run.