Upgrade ESLint to 9.x #544
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
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Build CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '22.x' | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run build:ci | |
- run: npm run test:ci | |
- name: Report | |
id: testsReport | |
uses: dorny/test-reporter@v1 | |
if: always() | |
with: | |
name: Angular tests, | |
path: artifacts/tests-results/*.xml | |
reporter: java-junit | |
fail-on-error: true | |
- name: Code Coverage Report | |
uses: irongut/[email protected] | |
with: | |
filename: coverage/**/cobertura-coverage.xml | |
badge: true | |
fail_below_min: false | |
format: markdown | |
hide_branch_rate: false | |
hide_complexity: true | |
indicators: true | |
output: both | |
thresholds: '60 80' | |
- name: Add Coverage PR Comment | |
uses: marocchino/sticky-pull-request-comment@v2 | |
if: github.event_name == 'pull_request' | |
with: | |
header: angular | |
message: angular coverage | |
recreate: true | |
path: code-coverage-results.md | |
- name: Create badge | |
uses: schneegans/[email protected] | |
with: | |
auth: ${{ secrets.GIST_SECRET }} | |
gistID: 0e6ea813e47d66e72b3c7b1be39bd10e | |
filename: test_results.json | |
label: tests | |
message: ${{ steps.testsReport.outputs.passed }} passed ${{ steps.testsReport.outputs.failed }} failed | |
color: green |