Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'EAS build' fails via github action. Succeeds via local terminal. #283

Open
JackFinnZinc opened this issue May 1, 2024 · 0 comments
Open

Comments

@JackFinnZinc
Copy link

Description of the bug

'EAS build' fails when run via github action.
'EAS build' succeeds when run via local terminal.

To Reproduce

What steps did you perform which led to this issue?

  1. Set up GitHub Action with this yml, which I've named 'eas-build-on-push.yml':
name: EAS Build on Push to Main

on:
  push:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: 🏗 Setup repo
        uses: actions/checkout@v3
        
      - name: Log working directory after checkout
        run: pwd

      - name: 🏗 Setup Node
        uses: actions/setup-node@v3
        with:
          node-version: '20'
          cache: 'npm'
          cache-dependency-path: client/package-lock.json

      - name: Log working directory after setup Node
        run: pwd

      - name: 🏗 Setup EAS
        uses: expo/expo-github-action@v8
        with:
          eas-version: latest
          token: ${{ secrets.EXPO_TOKEN }}

      - name: 📦 Install dependencies
        run: npm install
        working-directory: client

      - name: Log working directory after install dependencies
        run: pwd
        working-directory: client

      - name: 🚀 Build app
        run: eas build -p android -e test
        working-directory: client

      - name: Log working directory after build
        run: pwd
        working-directory: client


  1. Push from my local computer
  2. EAS build starts
  3. EAS build fails. Here is an extract of the output from expo.dev builds:
    image

Expected behavior

EAS build is successful.
If I execute eas build from my local terminal on the same commit, the build is successful.

Actual behavior

Build is not successful.

Additional context

I suspect the issue may relate to my folder structure.

Relevant folders from my root are:
.github/workflows
.git/
/client/
/server/

Package-lock.json is here:
/client/package-lock.json

Working directory logs from expo (screenshot is from github action executing eas build):
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant