Skip to content

Commit 3e7ca9a

Browse files
committed
Reset Repository
1 parent 36fb391 commit 3e7ca9a

30 files changed

+252
-2472
lines changed

.github/pull_request_template.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
### Scope of changes
2+
3+
[Describe the problem you're trying to solve and the fix/solution that you've implemented in this PR.]
4+
5+
Fixes SC-XXXXX
6+
7+
### Estimated PR Size:
8+
9+
- [ ] Tiny
10+
- [ ] Small
11+
- [ ] Medium
12+
- [ ] Large
13+
- [ ] Huge
14+
15+
### Acceptance criteria
16+
17+
[Describe how reviewers can test this change to be sure that it works correctly or copy the requirements from the Shortcut story. Add a checklist below if possible.]
18+
19+
### Author checklist
20+
21+
- [ ] I have manually tested the change and/or added automation in the form of unit tests or integration tests
22+
- [ ] I have updated the dependencies list
23+
- [ ] I have added new test fixtures as needed to support added tests
24+
- [ ] I have added or updated the documentation
25+
- [ ] I have run go generate to update generated code
26+
- [ ] Check this box if a reviewer can merge this pull request after approval (leave it unchecked if you want to do it yourself)
27+
28+
### Reviewer(s) checklist
29+
30+
- [ ] Any new user-facing content that has been added for this PR has been QA'ed to ensure correct grammar, spelling, and understandability.
31+
- [ ] To the best of my ability, I believe that this PR represents a good solution to the specified problem and that it should be merged into the main code base.

.github/workflows/tests.yaml

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
name: CI Tests
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- 'v*'
7+
tags:
8+
- 'v*'
9+
pull_request:
10+
11+
jobs:
12+
go-lint:
13+
name: Go Lint
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Setup Go
17+
uses: actions/setup-go@v6
18+
with:
19+
go-version: 1.25.x
20+
21+
- name: Install Staticcheck
22+
run: go install honnef.co/go/tools/cmd/staticcheck@latest
23+
24+
- name: Checkout Code
25+
uses: actions/checkout@v5
26+
27+
- name: Lint Go Code
28+
run: staticcheck ./...
29+
30+
go-test:
31+
name: Go Test
32+
runs-on: ubuntu-latest
33+
services:
34+
postgres:
35+
image: postgres:18
36+
env:
37+
POSTGRES_USER: rotational
38+
POSTGRES_PASSWORD: theeaglefliesatdawn
39+
POSTGRES_DB: rotational
40+
ports:
41+
- 5432:5432
42+
options: >-
43+
--health-cmd pg_isready
44+
--health-interval 10s
45+
--health-timeout 5s
46+
--health-retries 5
47+
env:
48+
GOPATH: ${{ github.workspace }}/go
49+
GOBIN: ${{ github.workspace }}/go/bin
50+
GOTEST_GITHUB_ACTIONS: 1
51+
DATABASE_URL: "postgres://rotational:theeaglefliesatdawn@localhost:5432/rotational?sslmode=disable"
52+
defaults:
53+
run:
54+
working-directory: ${{ env.GOPATH }}/src/go.rtnl.ai/radish
55+
steps:
56+
- name: Setup Go
57+
uses: actions/setup-go@v6
58+
with:
59+
go-version: 1.25.x
60+
61+
- name: Cache Speedup
62+
uses: actions/cache@v4
63+
with:
64+
path: ~/go/pkg/mod
65+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
66+
restore-keys: |
67+
${{ runner.os }}-go-
68+
69+
- name: Checkout Code
70+
uses: actions/checkout@v5
71+
with:
72+
path: ${{ env.GOPATH }}/src/go.rtnl.ai/radish
73+
74+
- name: Install Dependencies
75+
run: |
76+
go version
77+
78+
- name: Code Generation
79+
run: go generate ./...
80+
81+
- name: Run Unit Tests
82+
run: go test -v -coverprofile=coverage.txt -covermode=atomic --race ./...
83+
84+
build:
85+
name: Go Build
86+
runs-on: ubuntu-latest
87+
env:
88+
GOPATH: ${{ github.workspace }}/go
89+
GOBIN: ${{ github.workspace }}/go/bin
90+
defaults:
91+
run:
92+
working-directory: ${{ env.GOPATH }}/src/go.rtnl.ai/radish
93+
steps:
94+
- name: Set up Go
95+
uses: actions/setup-go@v6
96+
with:
97+
go-version: 1.25.x
98+
99+
- name: Cache Speedup
100+
uses: actions/cache@v4
101+
with:
102+
path: ~/go/pkg/mod
103+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
104+
restore-keys: |
105+
${{ runner.os }}-go-
106+
107+
- name: Checkout Code
108+
uses: actions/checkout@v5
109+
with:
110+
path: ${{ env.GOPATH }}/src/go.rtnl.ai/radish
111+
- name: Install Dependencies
112+
run: |
113+
go version
114+
115+
- name: Build
116+
run: go build ./cmd/...

.gitignore

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,13 @@
1414
# Dependency directories (remove the comment below to include it)
1515
# vendor/
1616

17-
# Docker
18-
.docker
17+
# Local environment variables and secrets
18+
.env
19+
.secret
20+
tmp
21+
22+
# IDEs
23+
.vscode
24+
25+
# OS files
26+
.DS_Store

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2020, Kansas Labs
3+
Copyright (c) 2020, Rotational Labs
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

Makefile

Lines changed: 0 additions & 76 deletions
This file was deleted.

0 commit comments

Comments
 (0)