repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

.github/workflows/check.yml

Raw
File outline
name: check

on:
  push:
  pull_request_target:

permissions:
  contents: read

jobs:
  extensions:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        if: github.event_name == 'push'
        with:
          persist-credentials: false
      - uses: actions/checkout@v4
        if: github.event_name == 'pull_request_target'
        with:
          repository: ${{ github.event.pull_request.head.repo.full_name }}
          ref: ${{ github.event.pull_request.head.sha }}
          persist-credentials: false
      - uses: oven-sh/setup-bun@v2
      - name: Check extensions
        run: python3 scripts/extensions.py check
      - name: Test extensions
        run: python3 scripts/extensions.py test