Skip to content

chore(app): update readme #244

chore(app): update readme

chore(app): update readme #244

Workflow file for this run

name: Build
on:
push:
branches: [dev, main]
pull_request:
branches: [dev, main]
env:
NODE_VERSION: 18.18.0
PNPM_VERSION: 8.15.1
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
jobs:
build:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
timeout-minutes: 20
steps:
- name: Install moreutils
run: sudo apt install moreutils
# https://github.com/actions/virtual-environments/issues/1187
- name: tune linux network
run: sudo ethtool -K eth0 tx off rx off
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: ${{ env.PNPM_VERSION }}
- 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: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: pnpm
- name: Restore cache
uses: actions/cache@v3
with:
key: turbo-${{ runner.os }}-${{ github.sha }}
restore-keys: |
turbo-${{ runner.os }}
path: |
node_modules/.cache/turbo
apps/*/.turbo
packages/*/.turbo
- uses: actions/labeler@v4
with:
sync-labels: true
- name: Install dependencies
run: pnpm i
- name: Check commit message
run: pnpm commitlint --from=HEAD^1
- name: format:check
run: pnpm format:check
- name: lint
run: pnpm lint
- name: jest
run: pnpm test
- name: tsc
run: pnpm tsc
preview:
runs-on: macos-14
needs: build
if: github.event_name == 'pull_request'
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: 🏗 Setup pnpm
uses: pnpm/action-setup@v2
with:
version: ${{ env.PNPM_VERSION }}
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: pnpm
- name: ♻️ Restore cache
uses: actions/cache@v3
with:
key: turbo-${{ runner.os }}-${{ github.sha }}
restore-keys: |
turbo-${{ runner.os }}
path: |
node_modules/.cache/turbo
apps/*/.turbo
packages/*/.turbo
- uses: actions/labeler@v4
with:
sync-labels: true
- name: Install dependencies
run: pnpm i
- name: Setup Expo
uses: expo/expo-github-action@v7
with:
expo-version: latest
eas-version: latest
token: ${{ secrets.FOAM_RELEASE_TOKEN }}
- name: Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.FOAM_RELEASE_TOKEN }}
- name: 🚀 Create preview
uses: expo/expo-github-action/preview@v8
with:
command: eas update --auto --branch=pr-${{ github.event.number }}
github-token: ${{ secrets.FOAM_GITHUB_TOKEN }}
qr-target: expo-go