refactor: migrate use-wallet from 2.x to 3.x #106
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: CI Checks | |
on: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- '**/*.md' # Do not run checks when only documentation files are changed | |
pull_request: | |
branches: [ main ] | |
paths-ignore: | |
- '**/*.md' # Do not run checks when only documentation files are changed | |
jobs: | |
e2e-test: | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Enable Corepack for Yarn | |
run: corepack enable | |
- name: Set up Node cache # Set up Node cache by installing again | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: yarn | |
- name: Install dependencies | |
run: yarn | |
- name: Install browsers for E2E testing | |
run: yarn playwright install --with-deps | |
- name: Run E2E tests | |
run: yarn test:e2e | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 | |
unit-test: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Enable Corepack for Yarn | |
run: corepack enable | |
- name: Set up Node cache # Set up Node cache by installing again | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: yarn | |
- name: Install dependencies | |
run: yarn | |
- name: Run unit tests | |
run: yarn test:ci | |
lint: | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Enable Corepack for Yarn | |
run: corepack enable | |
- name: Set up Node cache # Set up Node cache by installing again | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: yarn | |
- name: Install dependencies | |
run: yarn | |
- name: Run linter | |
run: yarn lint |