Create nym-wallet-tests.yml

action for building and running the tauri-wallet-tests
This commit is contained in:
Tommy Verrall
2021-10-15 17:46:53 +01:00
committed by GitHub
parent 5fb2c9d822
commit b7e14489da
+57
View File
@@ -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/