Skip to content

refactor: upgrade to Expo SDK 52 #653

refactor: upgrade to Expo SDK 52

refactor: upgrade to Expo SDK 52 #653

Workflow file for this run

name: Packages
concurrency:
group: packages-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
pull_request:
paths:
- .github/workflows/packages.yml
- packages/**
- .eslint*
- .prettier*
- yarn.lock
- turbo.json
push:
branches: [main]
paths:
- .github/workflows/packages.yml
- packages/**
- .eslint*
- .prettier*
- yarn.lock
- turbo.json
jobs:
review:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package:
- snack-babel-standalone
- snack-content
- snack-eslint-standalone
- snack-proxies
- snack-require-context
- snack-runtime
- snack-sdk
- snack-term
include:
- package: snack-babel-standalone
monorepo-detached: true
- package: snack-eslint-standalone
monorepo-detached: true
- package: snack-runtime
monorepo-detached: true
steps:
- name: πŸ— Setup repository
uses: actions/checkout@v3
- name: πŸ— Setup Node
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: yarn
- name: πŸ“¦ Install monorepo dependencies
run: yarn install --frozen-lockfile
# When coupled within the monorepo, make sure to build all packages related to the tested one
- name: πŸ›  Build dependencies
if: ${{ !matrix.monorepo-detached }}
run: yarn turbo build --filter "{./packages/${{ matrix.package }}}^..."
# When decoupled from the monorepo, make sure to install the local packages
- name: πŸ“¦ Install local dependencies
if: ${{ matrix.monorepo-detached }}
run: yarn install --frozen-lockfile
working-directory: packages/${{ matrix.package }}
- name: 🚨 Lint package
run: yarn lint --max-warnings 0
working-directory: packages/${{ matrix.package }}
- name: πŸ§ͺ Test package
run: yarn test --ci --maxWorkers 1
working-directory: packages/${{ matrix.package }}
- name: πŸ›  Build package
run: yarn build
working-directory: packages/${{ matrix.package }}