Skip to content

Fix workflow branch reference #5

Fix workflow branch reference

Fix workflow branch reference #5

Workflow file for this run

name: CI Build
on:
push:
branches: [ "main" ]
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js latest
uses: actions/setup-node@v3
with:
node-version: latest
- name: Install
run: |
npm ci
- name: Build
run: |
npm run build
- name: Lint & Format
run: |
npm run lint-check
npm run prettier-check
- name: Tests & Coverage
run: |
npm run coverage-ci
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}