-
Notifications
You must be signed in to change notification settings - Fork 53
41 lines (34 loc) · 990 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
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@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
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 }}