cloudflare/pint

Public

mirrored from https://github.com/cloudflare/pintAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
main

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/ci.yml

41lines · modepreview

name: pint ci

on:
  pull_request:
    branches:
      - main

permissions:
  pull-requests: write

jobs:
  ci:
    runs-on: ubuntu-latest
    if: ${{ github.event.pull_request.head.repo.full_name == 'cloudflare/pint' }}
    steps:
      - name: Check out code
        uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
        with:
          show-progress: false
          fetch-depth: 0

      - name: Fetch main branch
        run: |
          git fetch origin main
          git checkout main
          git fetch origin $GITHUB_HEAD_REF
          git checkout $GITHUB_HEAD_REF --

      - name: Set up Go
        uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
        with:
          go-version-file: go.ver
          cache: false

      - name: Compile pint
        run: make build

      - name: Run pint ci
        run: ./pint -l debug -c .github/pint/pint.hcl ci
        env:
          GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}