feat: use CI scripts #61
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 Bit Pull Request | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| permissions: | |
| pull-requests: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| BIT_CONFIG_ACCESS_TOKEN: ${{ secrets.BIT_CONFIG_ACCESS_TOKEN }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Initialize Bit | |
| uses: bit-tasks/init@v2 | |
| with: | |
| ws-dir: 'test-data' | |
| - name: Creating a bare scope | |
| run: mkdir acme.scope && cd acme.scope && bit init --bare | |
| - name: Start the server and test | |
| run: cd acme.scope && bit start --port 4000 --no-browser & sleep 200 && curl http://localhost:4000 | |
| - name: Add remote scope | |
| run: cd test-data && bit remote add http://localhost:4000 | |
| - name: Bit Pull Request | |
| uses: bit-tasks/pull-request@use-ci-scripts | |
| - name: Bit Lanes | |
| run: cd test-data && bit lane list --details |