updated readme #1
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 }} |