Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
geoperez authored Dec 5, 2023
1 parent a976b4d commit 9eb57a2
Showing 1 changed file with 12 additions and 22 deletions.
34 changes: 12 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
name: Node CI
name: Build and Report Sonar

on: pull_request
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]

jobs:
build:
runs-on: [ubuntu-latest]
env:
CI: true

steps:
- name: 🛎 Checkout
uses: actions/checkout@v4
- name: 📦 Cache
uses: actions/cache@v3
with:
path: ~/.npm
key: node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
node-
- name: 🏗 npm build and coverage
run: |
npm ci
npm run build
npm run cest
build:
uses: unosquare/bump-npm-version/.github/workflows/build-sonar.yml@master
secrets:
github-token: ${{ secrets.GPR_ACCESS_TOKEN }}
sonar-token: ${{ secrets.SONAR_TOKEN }}

0 comments on commit 9eb57a2

Please sign in to comment.