ci: delete ci, not needed and another attempt to fix sonar analysis
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '*'
|
||||
- '*/*'
|
||||
|
||||
jobs:
|
||||
code-checks:
|
||||
name: Code Checks
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.event.pull_request.head.ref }}
|
||||
|
||||
- name: Set up Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
node-version: '20'
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-
|
||||
|
||||
- name: Clean and Install
|
||||
run: cd client && npm ci
|
||||
- name: Build
|
||||
run: cd client && npm run build
|
||||
- name: Lint
|
||||
run: cd client && npm run lint
|
||||
#- name: Unit tests
|
||||
# run: npm run test
|
||||
@@ -48,7 +48,7 @@ jobs:
|
||||
-Dsonar.projectKey=ricardo-campos-org_react-typescript-todolist
|
||||
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
|
||||
-Dsonar.sources=src/
|
||||
-Dsonar.test.exclusions=src/__test__/setup.ts,src/__test__/__mocks__/
|
||||
-Dsonar.test.exclusions=src/__test__/setup.ts,src/__test__/__mocks__/**
|
||||
-Dsonar.tests=src/__test__/
|
||||
-Dsonar.verbose=true
|
||||
env:
|
||||
|
||||
@@ -44,7 +44,7 @@ jobs:
|
||||
-Dsonar.projectKey=ricardo-campos-org_react-typescript-todolist
|
||||
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
|
||||
-Dsonar.sources=src/
|
||||
-Dsonar.test.exclusions=src/__test__/setup.ts,src/__test__/__mocks__/
|
||||
-Dsonar.test.exclusions=src/__test__/setup.ts,src/__test__/__mocks__/**
|
||||
-Dsonar.tests=src/__test__/
|
||||
-Dsonar.verbose=true
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user