diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..c4280c6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + +jobs: + web-build: + name: Web Build + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + + - name: Install Dependencies + run: npm ci --legacy-peer-deps + + - name: Export Web Build + run: npx expo export --platform web + + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: web-build + path: dist/ + retention-days: 7 \ No newline at end of file diff --git a/README.md b/README.md index cef6616..0cf7563 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ [![Open Source](https://img.shields.io/badge/Open%20Source-Yes-green?style=flat-square)](https://opensource.org/) [![MIT License](https://img.shields.io/badge/License-MIT-yellow?style=flat-square)](./LICENSE) +[![CI](https://github.com/StepFi-app/StepFi-App/actions/workflows/ci.yml/badge.svg)](https://github.com/StepFi-app/StepFi-App/actions/workflows/ci.yml) # StepFi App