Skip to content

Bump @babel/core from 7.25.8 to 7.26.0 #219

Bump @babel/core from 7.25.8 to 7.26.0

Bump @babel/core from 7.25.8 to 7.26.0 #219

Workflow file for this run

name: build
on:
push:
branches:
- main
pull_request:
types: [ opened, synchronize, reopened ]
paths-ignore:
- '**/*.md'
- '**/*.txt'
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node_version: ['18', '20', '21']
steps:
# Check out the project
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
# Setup NodeJs
- name: Setup Node ${{ matrix.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
cache: 'npm'
check-latest: true
# Cache all the things
- name: Cache SonarCloud packages
uses: actions/cache@v4
if: ${{ env.SONAR_TOKEN != null && env.SONAR_TOKEN != '' && matrix.node_version == '18' }}
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
# Install dependencies
- name: Install Dependencies
run: npm install
# Compile the project
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
run: tsc
# Run tests
- name: Run tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
run: npm test
# Run Sonar Analysis
- name: Analyze with SonarCloud
if: ${{ env.SONAR_TOKEN != null && env.SONAR_TOKEN != '' && matrix.node_version == '18' }}
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}