Skip to content

Commit 1919355

Browse files
committed
chore: prepare for v0.1.0 release
Added MIT License, configured .gitignore, downgraded go.mod to 1.21 for broader compatibility, added GitHub Actions CI workflow, and cleaned up temporary analysis files.
1 parent 23b3edf commit 1919355

File tree

4 files changed

+82
-2
lines changed

4 files changed

+82
-2
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Go CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v4
18+
with:
19+
go-version: '1.21'
20+
21+
- name: Build
22+
run: go build -v ./...
23+
24+
- name: Test
25+
run: go test -v ./...
26+
27+
- name: Regression Tests Stats
28+
run: go test -v ./parser/pgregress/ -run TestPGRegressStats

.gitignore

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,34 @@
1-
.worktrees/
1+
# Binaries
2+
#
3+
*.exe
4+
*.exe~
5+
*.dll
6+
*.so
7+
*.dylib
8+
9+
# Test binary, built with `go test -c`
10+
*.test
11+
12+
# Output of the go coverage tool, specifically when used with LiteIDE
13+
*.out
14+
15+
# Dependency directories (remove the comment below to include it)
16+
# vendor/
17+
18+
# Go workspace file
19+
go.work
20+
21+
# VS Code output
22+
.vscode/
23+
24+
# IntelliJ
25+
.idea/
26+
27+
# Mac OS
28+
.DS_Store
29+
30+
# Temporary files
31+
*.tmp
32+
gramy_diff_report.md
33+
parser_rules.txt
34+
postgres_rules.txt

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2026, Rebelice Yang
2+
Copyright (c) 1996-2024, The PostgreSQL Global Development Group
3+
4+
Permission to use, copy, modify, and distribute this software and its
5+
documentation for any purpose, without fee, and without a written agreement
6+
is hereby granted, provided that the above copyright notice and this
7+
paragraph and the following two paragraphs appear in all copies.
8+
9+
IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
10+
DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
11+
LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS
12+
DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE
13+
POSSIBILITY OF SUCH DAMAGE.
14+
15+
THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
16+
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
17+
AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
18+
ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO
19+
PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/pgparser/pgparser
22

3-
go 1.25.5
3+
go 1.21

0 commit comments

Comments
 (0)