Skip to content

Commit

Permalink
Change remaining workscripts to nodejs 18, hide npm fundings in ci lo…
Browse files Browse the repository at this point in the history
…gs, fix deprecated options.

Signed-off-by: Kenneth T <6724477+kennethtran93@users.noreply.github.com>
  • Loading branch information
kennethtran93 committed Dec 12, 2022
1 parent bc6a0b1 commit a102813
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_tag_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
node-version: '18.x'
- name: Install Dependencies (npm ci)
run: npm ci
run: npm ci --no-fund
- name: Run Tests
run: npm run test -- --verbose
- name: Run Lint
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci_tag_testbuilds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
steps:
- name: Checkout Commit
uses: actions/checkout@v3
- name: Use Node.js 16.x
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.x'
- name: Install Dependencies (npm ci)
run: npm ci
run: npm ci --no-fund
- name: Run Tests
run: npm run test -- --verbose
- name: Run Lint
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,27 +74,23 @@ jobs:
with:
ref: ${{ needs.pre_info.outputs.gitSHA }}
- name: Use Node.js 18.x
id: node
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Get Node Version
id: node
run: |
echo "Node Version: $(node -v)"
echo "version=$(node -v)" >> $GITHUB_OUTPUT
- name: Cache Node Modules
id: nodeCache
uses: actions/cache@v3
with:
# npm cache files stored in `~/.npm` on Linux
path: ~/.npm
key: ${{ runner.os }}-nodejs-${{ steps.node.outputs.version }}-npm-${{ hashFiles('**/package.json', '**/package-lock.json') }}
- name: Install dependencies from cache (npm --cache-min install)
key: ${{ runner.os }}-nodejs-${{ steps.node.outputs.node-version }}-npm-${{ hashFiles('**/package.json', '**/package-lock.json') }}
- name: Install dependencies from cache (npm install --prefer-offline)
if: steps.nodeCache.outputs.cache-hit == 'true'
run: npm --cache-min 9999999 install
run: npm install --prefer-offline --no-fund
- name: Install dependencies (npm ci)
if: steps.nodeCache.outputs.cache-hit != 'true'
run: npm ci
run: npm ci --no-fund
- name: Run Tests
run: npm run test -- --verbose
- name: Run Lint
Expand Down

0 comments on commit a102813

Please sign in to comment.