chore(node): update to the latest node version that CM CLI can support fixes 699 #893
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: CI Build | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
node-version: [18.x] | |
include: | |
- os: ubuntu-latest | |
node-version: 18.x | |
reportCoverage: true | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm version | |
- run: npm install | |
- run: npm test | |
- run: npm run e2e | |
env: | |
E2E_CLIENT_ID: ${{ secrets.E2E_CLIENT_ID }} | |
E2E_CLIENT_SECRET: ${{ secrets.E2E_CLIENT_SECRET }} | |
E2E_TA_EMAIL: ${{ secrets.E2E_TA_EMAIL }} | |
E2E_IMS_ORG_ID: ${{ secrets.E2E_IMS_ORG_ID }} | |
E2E_PRIVATE_KEY_B64: ${{ secrets.E2E_PRIVATE_KEY_B64 }} | |
- run: npm run semantic-release-dry-run | |
- name: Codecov | |
uses: codecov/[email protected] | |
if: matrix.reportCoverage | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |