Skip to content

updated yml

updated yml #2

Workflow file for this run

# name: CI Workflow
# on: [push, pull_request]
# jobs:
# build-and-test:
# name: Build and Test
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Use Node.js
# uses: actions/setup-node@v2
# with:
# node-version: '20'
# - name: Install Dependencies
# run: npm install --force
# - name: Start Server
# run: npm start & npx wait-on --timeout 120000 http://localhost:4200/
# - name: Run E2E Tests
# run: SERVE_PORT=4200 npm run ionic-e2e:run:web
# - name: Build Project
# run: npm run build -- --prod --base-href="ionic-e2e"
# - name: Deploy to GitHub Pages
# uses: JamesIves/[email protected]
# with:
# branch: gh-pages # The branch to deploy to (GitHub Pages branch)
# folder: www # The folder the action should deploy
# token: ${{ secrets.GITHUB_TOKEN }}
name: CI Workflow
on: [push, pull_request]
jobs:
build-web:
name: Build Web App
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install Dependencies
run: npm install --force
- name: Build Project
run: npm run build -- --prod --base-href="ionic-e2e"
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch to deploy to (GitHub Pages branch)
folder: www # The folder the action should deploy
token: ${{ secrets.GITHUB_TOKEN }}
build-android:
name: Build Android App
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install Dependencies
run: npm install --force
- name: Build Android
run: npm run build-android
test-web:
name: Test Web App
runs-on: ubuntu-latest
needs: [build-web]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install Dependencies
run: npm install --force
- name: Start Server
run: npm start & npx wait-on --timeout 120000 http://localhost:4200/
- name: Run E2E Tests for Web
run: SERVE_PORT=4200 npm run ionic-e2e:run:web
test-android:
name: Test Android App
runs-on: ubuntu-latest
needs: [build-android]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install Dependencies
run: npm install --force
- name: Start Android Emulator
run: npm run start-emulator
- name: Run E2E Tests for Android
run: npm run ionic-e2e:run:android