mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
- Changed dependency for Common in CLI package.json to use npm package @oneuptime/common@latest. - Updated tsconfig.json to exclude Tests, build, node_modules, and jest.config.json. - Modified PublishAllPackages.sh to replace Common dependency with the pinned version during publish. - Added GitHub Actions workflow for testing CLI on pull requests and pushes.
22 lines
442 B
YAML
22 lines
442 B
YAML
name: CLI Test
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches-ignore:
|
|
- 'hotfix-*' # excludes hotfix branches
|
|
- 'release'
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
CI_PIPELINE_ID: ${{github.run_number}}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: latest
|
|
- run: cd Common && npm install
|
|
- run: cd CLI && npm install && npm run test
|