Skip to content

chore: ci

chore: ci #7

Workflow file for this run

name: "Test"
on:
pull_request:
push:
branches:
- main
jobs:
Test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18, 20]
env:
GITHUB_CI: true
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
check-latest: true
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: pnpm install
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- name: Setup Android SDK
uses: amyu/setup-android@v3
- name: Set ANDROID_SDK_ROOT
shell: bash
run: |
echo "ANDROID_SDK_ROOT=$(echo $ANDROID_HOME)" >> $GITHUB_ENV
echo $GITHUB_ENV
echo $PATH
- name: Run tests 👩🏽‍💻
run: npm run test