Skip to content

Commit 9d75d9c

Browse files
committed
add tests, improve output
1 parent 93015c6 commit 9d75d9c

File tree

5 files changed

+346
-681
lines changed

5 files changed

+346
-681
lines changed

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
permissions: {}
12+
13+
jobs:
14+
test:
15+
name: Test
16+
17+
runs-on: ${{ matrix.os }}
18+
19+
permissions:
20+
contents: read
21+
22+
strategy:
23+
matrix:
24+
os:
25+
- ubuntu-latest
26+
- macos-latest
27+
- windows-latest
28+
29+
steps:
30+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
31+
with:
32+
persist-credentials: false
33+
34+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
35+
with:
36+
go-version: '1.24'
37+
check-latest: 'true'
38+
cache: 'true'
39+
40+
- name: Install dependencies (Linux)
41+
if: ${{ matrix.os == 'ubuntu-latest' }}
42+
run: sudo apt-get update && sudo apt-get install -y gcc libgl1-mesa-dev xorg-dev
43+
44+
- name: Build
45+
run: make build
46+
47+
- name: Test
48+
run: make test

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
# BEGIN: lint-install .
33
# http://github.com/codeGROOVE-dev/lint-install
44

5-
.PHONY: lint
5+
.PHONY: lint test
6+
test:
7+
go test -race ./...
8+
69
lint: _lint
710

811
LINT_ARCH := $(shell uname -m)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/ready-to-review/prs
1+
module github.com/codeGROOVE-dev/prs
22

33
go 1.23.4
44

0 commit comments

Comments
 (0)