Repository navigation
Add initial devcell setup and tooling configuration #12
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: PR Checks | |
| on: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| secrets: | |
| name: Detect Secrets | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: gitleaks/gitleaks-action@v2 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| build: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Free disk space | |
| run: | | |
| sudo rm -rf /usr/share/dotnet | |
| sudo rm -rf /usr/local/lib/android | |
| sudo rm -rf /opt/ghc | |
| sudo rm -rf /opt/hostedtoolcache/CodeQL | |
| sudo docker image prune -af | |
| df -h | |
| - name: Install Task | |
| uses: arduino/setup-task@v2 | |
| with: | |
| version: 3.x | |
| - name: Copy example files | |
| run: | | |
| cp .tool-versions-example .tool-versions | |
| cp compose.local-example.yml compose.local.yml | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build Dockerfile | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| push: false | |
| load: true | |
| tags: devcell-cell:latest | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| build-args: | | |
| USER_NAME=runner | |
| USER_UID=1001 | |
| USER_GID=127 | |
| - name: Test Claude version | |
| run: | | |
| VERSION=$(docker run --rm devcell-cell:latest claude --version 2>&1 | grep -oE '[0-9]+\.[0-9]+\.[0-9]+ \(Claude Code\)' | head -1) | |
| echo "Claude version: $VERSION" | |
| if [[ -z "$VERSION" ]]; then | |
| echo "Could not find version in output" | |
| exit 1 | |
| fi | |
| if [[ "$VERSION" != *"2.0.76"* ]]; then | |
| echo "Expected version 2.0.76, got: $VERSION" | |
| exit 1 | |
| fi |