dev #1
1 changed files with 13 additions and 13 deletions
|
|
@ -30,19 +30,19 @@ jobs:
|
||||||
- name: Run ESLint
|
- name: Run ESLint
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
|
|
||||||
sonar:
|
sonar:
|
||||||
needs: lint
|
needs: lint
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
container:
|
container:
|
||||||
image: node:20-alpine
|
image: node:20-alpine
|
||||||
steps:
|
steps:
|
||||||
- name: Manual Git Checkout and Prepare
|
- name: Manual Git Checkout and Prepare
|
||||||
run: |
|
run: |
|
||||||
apk add --no-cache git curl bash
|
apk add --no-cache git curl bash
|
||||||
git init
|
git init
|
||||||
git remote add origin ${{ env.REPO_URL }}/${{ github.repository }}.git
|
git remote add origin ${{ env.REPO_URL }}/${{ github.repository }}.git
|
||||||
git fetch --depth 1 origin ${{ github.ref }}
|
git fetch --depth 1 origin ${{ github.ref }}
|
||||||
git checkout FETCH_HEAD
|
git checkout FETCH_HEAD
|
||||||
|
|
||||||
- name: Install Node.js and Sonar Scanner
|
- name: Install Node.js and Sonar Scanner
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue