Merge pull request #1084 from thejaviertc/dev #26
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: 🚀 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 |