diff --git a/.github/workflows/cli-core-test.yml b/.github/workflows/cli-core-test.yml index 44e7d125..bed27360 100644 --- a/.github/workflows/cli-core-test.yml +++ b/.github/workflows/cli-core-test.yml @@ -17,14 +17,14 @@ jobs: with: # Disabling shallow clone is recommended for improving relevancy of reporting fetch-depth: 0 - - run: npm install + - run: make install - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} cache: 'npm' - name: Run tests - run: npm test + run: make test - name: SonarCloud Scan uses: sonarsource/sonarcloud-github-action@master env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index df194257..478729f5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,14 +35,14 @@ jobs: steps: - name: Checkout cli-core repo uses: actions/checkout@v2 - - run: npm install + - run: make install - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} cache: 'npm' - name: Run tests - run: npm test + run: make test update-api-specs: runs-on: ubuntu-latest # needs: [test] @@ -67,7 +67,7 @@ jobs: - name: Update OAI specs id: update-specs run: | - npm install + make install cp -R ~/oai_definitions/CHANGES.md OAI_CHANGES.md source .github/scripts/update-api-spec-with-changelog.sh echo "::set-output name=change-log::$changeLog" @@ -84,7 +84,7 @@ jobs: persist-credentials: false - run: | git pull - npm install + make install - name: semanticRelease id: semantic-release run: npx semantic-release -t \${version} @@ -108,7 +108,7 @@ jobs: uses: actions/checkout@v2 - run: | git pull - npm install + make install - name: Invoke CLI workflow with changelog and version-type run: | fileName="$GITHUB_WORKSPACE/.github/scripts/trigger-workflow.js"