Skip to content

Commit

Permalink
chore: github workflow update (twilio#183)
Browse files Browse the repository at this point in the history
* chore: update github workflow to use make command
  • Loading branch information
kridai committed Dec 15, 2021
1 parent 22f6ea9 commit a96ebc3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cli-core-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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"
Expand All @@ -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}
Expand All @@ -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"
Expand Down

0 comments on commit a96ebc3

Please sign in to comment.