-
-
Notifications
You must be signed in to change notification settings - Fork 9
32 lines (28 loc) · 988 Bytes
/
ci.yaml
File metadata and controls
32 lines (28 loc) · 988 Bytes
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
name: ci
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
name: test and coverage
runs-on: ${{ matrix.os }}
steps:
- name: set up
uses: actions/setup-go@v6
with:
go-version: '>=1.26.0'
- name: checkout
uses: actions/checkout@v5
# TODO: ちょっとlintが結構でちゃったので一旦別対応にする
# - name: golangci-lint # localでmake lintした方が今はわかりやすい
# if: runner.os == 'Linux'
# uses: golangci/golangci-lint-action@v8
# with:
# version: latest
# args: --issues-exit-code=0
- name: test # testだけ各OSで実行
run: go test . ./markdown/... -race -coverprofile=coverage.out -covermode=atomic -v
- name: upload coverage to Codecov
if: runner.os == 'Linux'
uses: codecov/codecov-action@v3