Skip to content

Commit a96ebc3

Browse files
authored
chore: github workflow update (#183)
* chore: update github workflow to use make command
1 parent 22f6ea9 commit a96ebc3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/cli-core-test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
with:
1818
# Disabling shallow clone is recommended for improving relevancy of reporting
1919
fetch-depth: 0
20-
- run: npm install
20+
- run: make install
2121
- name: Use Node.js ${{ matrix.node-version }}
2222
uses: actions/setup-node@v2
2323
with:
2424
node-version: ${{ matrix.node-version }}
2525
cache: 'npm'
2626
- name: Run tests
27-
run: npm test
27+
run: make test
2828
- name: SonarCloud Scan
2929
uses: sonarsource/sonarcloud-github-action@master
3030
env:

.github/workflows/release.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ jobs:
3535
steps:
3636
- name: Checkout cli-core repo
3737
uses: actions/checkout@v2
38-
- run: npm install
38+
- run: make install
3939
- name: Use Node.js ${{ matrix.node-version }}
4040
uses: actions/setup-node@v2
4141
with:
4242
node-version: ${{ matrix.node-version }}
4343
cache: 'npm'
4444
- name: Run tests
45-
run: npm test
45+
run: make test
4646
update-api-specs:
4747
runs-on: ubuntu-latest
4848
# needs: [test]
@@ -67,7 +67,7 @@ jobs:
6767
- name: Update OAI specs
6868
id: update-specs
6969
run: |
70-
npm install
70+
make install
7171
cp -R ~/oai_definitions/CHANGES.md OAI_CHANGES.md
7272
source .github/scripts/update-api-spec-with-changelog.sh
7373
echo "::set-output name=change-log::$changeLog"
@@ -84,7 +84,7 @@ jobs:
8484
persist-credentials: false
8585
- run: |
8686
git pull
87-
npm install
87+
make install
8888
- name: semanticRelease
8989
id: semantic-release
9090
run: npx semantic-release -t \${version}
@@ -108,7 +108,7 @@ jobs:
108108
uses: actions/checkout@v2
109109
- run: |
110110
git pull
111-
npm install
111+
make install
112112
- name: Invoke CLI workflow with changelog and version-type
113113
run: |
114114
fileName="$GITHUB_WORKSPACE/.github/scripts/trigger-workflow.js"

0 commit comments

Comments
 (0)