This repository has been archived by the owner on Mar 11, 2024. It is now read-only.
Manage multiple WalletConnect sessions #1957
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
- run: npm run lint | |
- run: npm audit --production | |
- run: npm test | |
electron-tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- id: get-os | |
run: | | |
os=$(echo ${{ matrix.os }} | cut -d- -f1) | |
echo "::set-output name=os::$os" | |
shell: bash | |
- run: echo "${{ steps.get-os.outputs.os }}" | |
shell: bash | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- run: npm ci | |
shell: bash | |
- run: npm run-script electron-pack-${{ steps.get-os.outputs.os }} | |
shell: bash | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |