Skip to content

docs: fix image path- scaffolding #8

docs: fix image path- scaffolding

docs: fix image path- scaffolding #8

Workflow file for this run

name: CI/CD Pipeline ELysium Testing
on:
push:
branches:
- develop
pull_request:
branches:
- develop
env:
AZURE_WEBAPP_NAME: cicero
AZURE_WEBAPP_PACKAGE_PATH: '.'
NODE_VERSION: '18.x'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_TEST_ENVIRONMENT }}
- name: Cache Node.js modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run test --if-present
- name: Build project
run: npm run build --if-present
- name: Deploy to Azure Web Apps
uses: azure/webapps-deploy@v3
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
package: ./build
- name: Logout from Azure
run: az logout