Finish cli #7
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
name: Commit Gate | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' # Or any other version you need | |
- name: Install dependencies | |
run: npm ci --prefix src/ | |
- name: Build | |
run: npm run build --prefix src/ | |
- name: Install test dependencies | |
run: npm ci --prefix tests/ | |
- name: Run tests | |
run: npm run test --prefix tests/ |