Skip to content

Chore: Upgrade Oclif Core to Version 4 #3541

Chore: Upgrade Oclif Core to Version 4

Chore: Upgrade Oclif Core to Version 4 #3541

Workflow file for this run

# 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: Node.js CI
on:
workflow_dispatch: null
push:
branches:
- main
pull_request:
branches:
- main
permissions:
issues: read
pull-requests: read
actions: write
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- run: npm ci
- run: npm run build -w packages/notification
- run: npm run lint
- name: Cancel workflow on failure
if: 'failure()'
uses: 'andymckay/[email protected]'
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- run: npm ci
- run: npm run build -w packages/notification
- run: npm run format
- name: Cancel workflow on failure
if: 'failure()'
uses: 'andymckay/[email protected]'
prod_test_npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- run: npm ci
- run: npm run build -w packages/notification
- run: npm pack
- run: npm install -g ./hyperjumptech-monika-*.tgz
- run: npm run prod_test
- name: Cancel workflow on failure
if: 'failure()'
uses: 'andymckay/[email protected]'
prod_test_binary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- run: npm ci
- run: npm run build -w packages/notification
- run: npm pack
- run: npm run pkg -- -t node18-linux-x64
name: Pack the binary using vercel/pkg
- run: ./dist/monika -v
name: Test to make sure printing the version succeeds
- name: Cancel workflow on failure
if: 'failure()'
uses: 'andymckay/[email protected]'
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- run: npm ci
- run: npm run build -w packages/notification
- run: npm test
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Cancel workflow on failure
if: 'failure()'
uses: 'andymckay/[email protected]'