wip - react native sdk #119
Workflow file for this run
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 | |
on: push | |
jobs: | |
build: | |
name: "Validate with Node ${{ matrix.node-version }}" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: ["current", "18", "16"] | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
# @note caching is disabled to avoid cypress binary from being restored from the wrong version's cache | |
- name: Setup Node with ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build packages | |
run: pnpm build | |
- name: Lint | |
run: pnpm lint | |
- name: Typecheck | |
run: pnpm typecheck | |
- name: Test | |
run: pnpm test | |
- if: ${{ failure() }} | |
name: Upload Error Screenshot | |
uses: actions/upload-artifact@v3 | |
with: | |
name: error_screenshots_node_version_${{ matrix.node-version }} | |
path: | | |
${{github.workspace}}/**/cypress/screenshots | |
${{github.workspace}}/**/cypress/videos | |
retention-days: 3 |