Skip to content

Refactor CI pipeline to include JDK 17 setup #4

Refactor CI pipeline to include JDK 17 setup

Refactor CI pipeline to include JDK 17 setup #4

name: CI Pipeline
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "18"
- name: Install dependencies
run: yarn install
- name: Run tests with coverage
run: yarn vitest --coverage
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: "temurin" # Instala a distribuição Temurin
java-version: "17"
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@v1
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.javascript.lcov.reportPaths=coverage/lcov-report/lcov.info