Updated yml file #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: ionic-e2e: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: ionic-e2e:run:android |