cloudflare/pint

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
afc4f00ac385eb8bfdaeeebecc2aa74b09246cd5

Branches

Tags

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

Clone

HTTPS

Download ZIP

.github/workflows/ci.yml

41lines · modecode

1name: pint ci
2
3on:
4 pull_request:
5 branches:
6 - main
7
8permissions:
9 pull-requests: write
10
11jobs:
12 ci:
13 runs-on: ubuntu-latest
14 if: ${{ github.event.pull_request.head.repo.full_name == 'cloudflare/pint' }}
15 steps:
16 - name: Check out code
17 uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
18 with:
19 show-progress: false
20 fetch-depth: 0
21
22 - name: Fetch main branch
23 run: |
24 git fetch origin main
25 git checkout main
26 git fetch origin $GITHUB_HEAD_REF
27 git checkout $GITHUB_HEAD_REF --
28
29 - name: Set up Go
30 uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
31 with:
32 go-version-file: go.ver
33 cache: false
34
35 - name: Compile pint
36 run: make build
37
38 - name: Run pint ci
39 run: ./pint -l debug -c .github/pint/pint.hcl ci
40 env:
41 GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42