Skip to content

Merge pull request #38 from wednesday-solutions/fix/add-performance-o… #109

Merge pull request #38 from wednesday-solutions/fix/add-performance-o…

Merge pull request #38 from wednesday-solutions/fix/add-performance-o… #109

Workflow file for this run

name: Next Bulletproof Template CI
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
build-lint-test-lhci:
name: Build & Lint
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn
- name: Lint codebase
run: yarn lint
- name: Test codebase
run: yarn test
- name: Build Project
run: yarn build
# commenting for now to make CI green , will try this
# - name: run Lighthouse CI
# run: |
# yarn global add @lhci/[email protected]
# lhci autorun --collect.staticDistDir
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
# commenting for now to make CI green , will try this
# - uses: sonarsource/sonarqube-quality-gate-action@master
# timeout-minutes: 5
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}