diff --git a/.github/workflows/build-integrity.yml b/.github/workflows/build-integrity.yml new file mode 100644 index 0000000..475e925 --- /dev/null +++ b/.github/workflows/build-integrity.yml @@ -0,0 +1,30 @@ +name: CI + +on: + pull_request: + branches: [main] + push: + branches: [main] + workflow_dispatch: + +# Cancel in-progress runs when starting a new one. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + + # Verify code format and build integrity for every PR. + build-integrity: + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + + - name: Checkout code + id: checkout + uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref || github.ref_name }} + token: ${{ secrets.GITHUB_TOKEN }}