This file contains hidden or 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
| /* | ||
| * ┌─────────────────────────────────────────────────────────────────────┐ | ||
| * │ │ | ||
| * │ ███╗ ███╗██╗██████╗ │ | ||
| * │ ████╗ ████║██║██╔══██╗ │ | ||
| * │ ██╔████╔██║██║██████╔╝ │ | ||
| * │ ██║╚██╔╝██║██║██╔═══╝ │ | ||
| * │ ██║ ╚═╝ ██║██║██║ │ | ||
| * │ ╚═╝ ╚═╝╚═╝╚═╝ │ | ||
| * │ │ | ||
| * │ MInimal Package Manager │ | ||
| * │ https://github.com/kiwinatra/mip │ | ||
| * │ │ | ||
| * │ MIT License · Copyright (c) 2026 kiwinatra │ | ||
| * │ │ | ||
| * └─────────────────────────────────────────────────────────────────────┘ | ||
| */ | ||
| name: CI | ||
| on: | ||
| push: | ||
| branches: [main, develop] | ||
| pull_request: | ||
| branches: [main] | ||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| node-version: [16, 18, 20] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| - run: npm install | ||
| - run: node bin/mip.js --version | ||
| - run: node bin/mip.js init test-project | ||
| - run: node bin/mip.js install lodash --cwd test-project | ||
| - run: node bin/mip.js list --cwd test-project | ||
| - run: node bin/mip.js outdated --cwd test-project | ||
| - run: node bin/mip.js audit --cwd test-project | ||
| lint: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - run: npm install | ||
| - run: npx eslint lib/ bin/ | ||
| security: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - run: npm install | ||
| - run: npm audit --production | ||