Skip to content

Merge pull request #1084 from thejaviertc/dev #26

Merge pull request #1084 from thejaviertc/dev

Merge pull request #1084 from thejaviertc/dev #26

Workflow file for this run

name: 🚀 CD
on:
push:
branches: [main]
jobs:
CD:
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 📗 Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: "lts/iron"
- name: 🔨 Build Project
run: |
npm ci
npm run build
- name: 🧪 Test Project
run: npm run test
- name: 🔎 SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: 🚀 Deploy Project
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:
branch: gh-pages
folder: build