-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (46 loc) · 1.49 KB
/
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
42
43
44
45
46
47
48
49
50
# Source: https://github.com/actions/starter-workflows/blob/main/ci/go.yml
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
# Test golangci-lint for go-version define in go.mod
golangci:
runs-on: ubuntu-24.04
steps:
- name: Install harfbuzz
run: sudo apt-get install libharfbuzz-dev
- name: Set PKG_CONFIG_PATH
run: export PKG_CONFIG_PATH=/usr/include/harfbuzz
- name: Install GCC
run: sudo apt-get install gcc
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.0.0
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a #v5.2.0
with:
go-version-file: go.mod
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@ec5d18412c0aeab7936cb16880d708ba2a64e1ae #v6.2.0
with:
version: latest
only-new-issues: true
tests:
runs-on: ubuntu-24.04
steps:
- name: Install harfbuzz
run: sudo apt-get install libharfbuzz-dev
- name: Set PKG_CONFIG_PATH
run: export PKG_CONFIG_PATH=/usr/include/harfbuzz
- name: Install GCC
run: sudo apt-get install gcc
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.0.0
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a #v5.2.0
with:
go-version-file: go.mod
cache: false
- name: Test
run: go test -v ./...