Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
* text eol=lf
*.png binary
*.jpg binary

**/yarn.lock linguist-generated
11 changes: 11 additions & 0 deletions .github/actions/setup-mise/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: setup-mise
description: Install tools via mise

runs:
using: "composite"
steps:
- uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1
with:
install: true
cache: true
experimental: true
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4

- uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1
- uses: ./.github/actions/setup-mise

- uses: ./.github/internal-actions/setup-gcloud

Expand Down
58 changes: 23 additions & 35 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,18 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: yarn install --frozen-lockfile --check-files
- run: yarn build
- uses: ./.github/actions/setup-mise
- run: bun install --frozen-lockfile
- run: bun run build
- name: Ensure GraphQL schema and generated code is up-to-date
working-directory: ${{ github.workspace }}/packages/eas-cli
run: |
yarn verify-graphql-code
bun run verify-graphql-code
- name: Build tarballs
working-directory: ${{ github.workspace }}/packages/eas-cli
run: |
yarn pretarball-ci
yarn oclif pack:tarballs --no-xz --targets linux-x64,linux-arm
bun run pretarball-ci
bunx oclif pack:tarballs --no-xz --targets linux-x64,linux-arm
- id: x64
run: echo "filename=$(ls eas-*-x64.tar.gz)" >> $GITHUB_OUTPUT
working-directory: ${{ github.workspace }}/packages/eas-cli/dist
Expand Down Expand Up @@ -77,19 +75,17 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: ./.github/actions/setup-mise
- run: brew install python-setuptools
env:
HOMEBREW_NO_AUTO_UPDATE: 1
- run: yarn install --frozen-lockfile --check-files
- run: yarn build
- run: bun install --frozen-lockfile
- run: bun run build
- name: Build tarballs
working-directory: ${{ github.workspace }}/packages/eas-cli
run: |
yarn pretarball-ci
yarn oclif pack:tarballs --no-xz --targets darwin-x64,darwin-arm64
bun run pretarball-ci
bunx oclif pack:tarballs --no-xz --targets darwin-x64,darwin-arm64
- id: x64
run: echo "filename=$(ls eas-*-x64.tar.gz)" >> $GITHUB_OUTPUT
working-directory: ${{ github.workspace }}/packages/eas-cli/dist
Expand Down Expand Up @@ -122,15 +118,13 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: yarn install --frozen-lockfile --check-files
- uses: ./.github/actions/setup-mise
- run: bun install --frozen-lockfile
- run: sudo apt-get install nsis
- run: yarn build
- run: bun run build
- run: |
yarn pretarball-ci
yarn oclif pack:win
bun run pretarball-ci
bunx oclif pack:win
working-directory: ${{ github.workspace }}/packages/eas-cli
- id: x64
run: echo "filename=$(ls eas-*-x64.exe)" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -164,17 +158,13 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org/'
scope: 'expo'
node-version: 22
- uses: ./.github/actions/setup-mise
- name: Install dependencies
run: yarn install --frozen-lockfile --check-files
run: bun install --frozen-lockfile
- name: Build
run: yarn build
run: bun run build
- name: Publish packages to npm
run: yarn lerna publish from-package --yes --no-verify-access
run: bunx lerna publish from-package --yes --no-verify-access
- name: Add latest-eas-build-staging tag
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
Expand All @@ -199,17 +189,15 @@ jobs:
- uses: actions/checkout@v4
with:
token: ${{ secrets.EXPO_BOT_PAT }}
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: ./.github/actions/setup-mise
- name: Install dependencies
working-directory: ./scripts
run: yarn install --frozen-lockfile --check-files
run: bun install --frozen-lockfile
- name: Resolve version
run: echo "EAS_CLI_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- name: Update changelog
working-directory: ./scripts
run: yarn --silent release-changelog $EAS_CLI_VERSION > /tmp/current-changelog
run: bun run release-changelog $EAS_CLI_VERSION > /tmp/current-changelog
- name: Publish release
run: gh release edit v$EAS_CLI_VERSION --draft=false -F /tmp/current-changelog
env:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 20
- uses: ./.github/actions/setup-mise
- uses: preactjs/compressed-size-action@v2
with:
build-script: 'build:tarballs:linux'
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/test-graphql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 22
- run: yarn install --frozen-lockfile
- run: yarn verify-graphql-code
- name: Setup tools
uses: ./.github/actions/setup-mise
- run: bun install --frozen-lockfile
- run: bun run verify-graphql-code
working-directory: packages/eas-cli
10 changes: 4 additions & 6 deletions .github/workflows/test-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 20
- run: yarn install --frozen-lockfile --check-files
- run: yarn typecheck
- name: Setup tools
uses: ./.github/actions/setup-mise
- run: bun install --frozen-lockfile
- run: bun run typecheck
21 changes: 13 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: yarn install --frozen-lockfile --check-files
- run: yarn typecheck
- uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1
with:
install: false
- name: Install Bun via mise
run: mise install bun
- run: bun install --frozen-lockfile
- run: bun run typecheck
- run: |
git config --global user.email "tester@expo.dev"
git config --global user.name "Test"
Expand All @@ -38,31 +43,31 @@ jobs:
- name: Run tests (affected)
# PRs: only run tests for changed packages + dependents.
if: ${{ !matrix.coverage && github.event_name == 'pull_request' }}
run: yarn lerna run test --since ${{ github.event.pull_request.base.sha }} --include-dependents
run: bun run test -- --since ${{ github.event.pull_request.base.sha }} --include-dependents
env:
NODE_OPTIONS: --max-old-space-size=8192
- name: Run tests (all)
# Pushes to main: run all package tests.
if: ${{ !matrix.coverage && github.event_name == 'push' }}
run: yarn lerna run test
run: bun run test
env:
NODE_OPTIONS: --max-old-space-size=8192
- name: Run tests (coverage)
# Coverage on PRs and main; per-package reports are uploaded to Codecov.
if: ${{ matrix.coverage }}
run: yarn lerna run test -- -- --coverage
run: bun run test -- -- --coverage
env:
# Oclif seems to cause OOM errors when testing with coverage enabled.
# Remove this whenever we solved those OOM errors.
NODE_OPTIONS: --max-old-space-size=8192
- run: yarn lint --max-warnings=0
- run: yarn install --frozen-lockfile --check-files
- run: bun run lint -- --max-warnings=0
- run: bun install --frozen-lockfile
working-directory: ./scripts
- uses: codecov/codecov-action@v1
if: ${{ matrix.coverage }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
- run: yarn lint-changelog
- run: bun run lint-changelog

notify-slack:
runs-on: ubuntu-latest
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/trigger-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,20 @@ jobs:
ref: main
fetch-depth: 0
token: ${{ secrets.EXPO_BOT_PAT }}
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: ./.github/actions/setup-mise
- run: |
# Lerna will not detect changes correctly without having all tags
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
# Checkout the main branch
git checkout main
git config --global user.email "support+ci@expo.io"
git config --global user.name "Expo CI"
yarn install --frozen-lockfile --check-files
yarn build
bun install --frozen-lockfile
bun run build
if [[ "$INPUT_VERSION" == "" ]]; then
echo "Releasing with default version"
yarn release
bun run release
else
echo "Releasing with version $INPUT_VERSION"
yarn release $INPUT_VERSION
bun run release $INPUT_VERSION
fi
81 changes: 0 additions & 81 deletions .github/workflows/upgrade-eas-build-modules.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/worker-system-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4

- uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1
- uses: ./.github/actions/setup-mise

- name: Create test app
run: npx -y create-expo-app@latest ${{ runner.temp }}/test-app --template tabs
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- "packages/turtle-spawn/**"
- .github/workflows/worker.yml
- .github/workflows/build-and-deploy-worker.yml
- yarn.lock
- bun.lock

concurrency:
group: worker-${{ github.ref }}-${{ github.event_name }}
Expand All @@ -26,19 +26,19 @@ jobs:
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4

- uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1
- uses: ./.github/actions/setup-mise

- run: yarn install --frozen-lockfile --check-files
- run: bun install --frozen-lockfile

- run: yarn typecheck
- run: bun run typecheck

- name: Run unit tests
working-directory: packages/worker
run: yarn test:unit
run: bun run test:unit

- name: Run integration tests
working-directory: packages/worker
run: yarn test:integration
run: bun run test:integration

worker-build:
needs:
Expand Down
1 change: 0 additions & 1 deletion .yarnrc
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
save-prefix ""
2 changes: 2 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@

When working with this repository follow instructions from CLAUDE.md.

Use Bun for installs and scripts unless a command explicitly requires a different tool.

- [./CLAUDE.md](./CLAUDE.md)

Loading