nesesito archivo de permisos en caja de arena en github #3
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
| name: Test | |
| on: | |
| push: | |
| branches: [d, m] | |
| pull_request: | |
| branches: [d, m] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup bun | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Create pi config directory | |
| run: | | |
| mkdir -p ~/.pi | |
| cp permissions/permissions.example.json ~/.pi/permissions.json | |
| - name: Run tests | |
| run: cd permissions && bun test test/ | |
| sandbox-test: | |
| runs-on: ubuntu-latest | |
| needs: test | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Package extension | |
| run: | | |
| cd permissions | |
| npm pack | |
| ls -la *.tgz | |
| - name: Install pi coding agent | |
| run: | | |
| npm install -g @earendil-works/pi-coding-agent | |
| - name: Add extension to agent | |
| run: | | |
| mkdir -p ~/.pi/agent/extensions | |
| tar -xzf *.tgz -C ~/.pi/agent/extensions | |
| - name: Test allowed commands | |
| run: | | |
| # Test allowed commands | |
| echo "Testing allowed commands..." | |
| cd permissions | |
| bun test test/ | |
| # Verify extension is loaded | |
| echo "Verifying extension..." | |
| ls ~/.pi/agent/extensions/ |