Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add git to image #7

Open
mdeweerd opened this issue Aug 29, 2023 · 0 comments
Open

Add git to image #7

mdeweerd opened this issue Aug 29, 2023 · 0 comments

Comments

@mdeweerd
Copy link

'git' would be a useful addition apk add git fails more often than non in the github ci flow.

Without git, the checkout actually downloads an archive that does not include the .github directory.

---
on: [pull_request, push]
name: phan
jobs:
  phan:
    name: Run phan
    runs-on: ubuntu-latest
    container:
      image: phanphp/phan:latest
    steps:
      - name: Link paths and add git
        shell: sh
        run: |
          ln -s $GITHUB_WORKSPACE /mnt/src
          apk add git

      - name: Checkout
        uses: actions/checkout@v3

      - name: Run Phan
        run: |
          cd /mnt/src
          set -o pipefail
          /opt/phan/phan -k /mnt/src/.github/workflows/phan_config.php -B /mnt/src/.github/workflows/phan_baseline.txt --analyze-twice --minimum-target-php-version 5.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant