diff --git a/.github/workflows/nym_wallet.yml b/.github/workflows/nym_wallet.yml new file mode 100644 index 0000000000..64caf81360 --- /dev/null +++ b/.github/workflows/nym_wallet.yml @@ -0,0 +1,57 @@ +name: webdriverio tests for nym wallet + +on: + push: + paths: + - '/tauri-wallet/*' +defaults: + run: + working-directory: tauri-wallet + +jobs: + test: + name: wallet tests + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Tauri dependencies + run: > + sudo apt-get update && + sudo apt-get install -y + libgtk-3-dev + libgtksourceview-3.0-dev + webkit2gtk-4.0 + libappindicator3-dev + webkit2gtk-driver + xvfb + + - name: Rust stable + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + components: clippy, rustfmt + + - name: Node v16 + uses: actions/setup-node@v1 + with: + node-version: 16.x + + - name: Build application + run: yarn run webpack:build & yarn run tauri:build + working-directory: tauri-wallet + + - name: Yarn install + run: yarn install + working-directory: webdriver/ + + - name: Install tauri-driver + uses: actions-rs/cargo@v1 + with: + command: install + args: tauri-driver + + - name: Launch tests + run: xvfb-run yarn test:login + working-directory: webdriver/