feat: ✨ enhance Docker image with engram, aleph, and shell env setup #2
Workflow file for this run
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: Pull Request validation | |
| on: | |
| - pull_request | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| id: checkout | |
| uses: actions/checkout@v5 | |
| - name: Set up Python | |
| id: setup-python | |
| uses: actions/setup-python@v5 | |
| - name: Run pre-commit checks | |
| id: pre-commit | |
| uses: cloudposse/github-action-pre-commit@v4.0.0 | |
| - name: Build Docker image if Dockerfile changed | |
| run: | | |
| if git diff --name-only origin/${{ github.base_ref }} | grep -q '^Dockerfile$'; then | |
| echo "Dockerfile changed — building image..." | |
| docker build -t opencode-cli-pr:latest . | |
| else | |
| echo "Dockerfile not changed — skipping build." | |
| fi |