Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: uptrace/bun
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.5
Choose a base ref
...
head repository: uptrace/bun
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing 1,324 changed files with 26,878 additions and 6,068 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: ['https://uptrace.dev/sponsor']
10 changes: 0 additions & 10 deletions .github/dependabot.yml

This file was deleted.

24 changes: 20 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Go

on:
workflow_dispatch:
push:
branches: [master]
pull_request:
@@ -11,8 +12,9 @@ jobs:
name: build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go-version: [1.16.x]
go-version: [1.22.x, 1.23.x, 1.24.x]

services:
postgres:
@@ -46,7 +48,7 @@ jobs:
- 53306:3306
options: >-
--health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s
--health-retries=3
--health-retries=5
mariadb:
image: mariadb:10.6
env:
@@ -58,7 +60,20 @@ jobs:
- 13306:3306
options: >-
--health-cmd="mariadb-admin ping" --health-interval=10s --health-timeout=5s
--health-retries=3
--health-retries=5
mssql2019:
image: ghcr.io/uptrace/mssql:latest
env:
ACCEPT_EULA: Y
MSSQL_SA_PASSWORD: passWORD1
MSSQL_DB: test
MSSQL_USER: sa
MSSQL_PASSWORD: passWORD1
ports:
- 1433:1433
options: >-
--health-cmd="/opt/mssql-tools18/bin/sqlcmd -S localhost -C -U sa -P passWORD1 -Q
'select 1' -b -o /dev/null" --health-interval=10s --health-timeout=5s --health-retries=5
steps:
- name: Set up ${{ matrix.go-version }}
@@ -67,7 +82,7 @@ jobs:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Test
run: make test
@@ -76,3 +91,4 @@ jobs:
MYSQL: user:pass@/test
MYSQL5: user:pass@tcp(localhost:53306)/test
MARIADB: user:pass@tcp(localhost:13306)/test
MSSQL2019: sqlserver://sa:passWORD1@localhost:1433?database=master
11 changes: 11 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Lint Commit Messages
on: [pull_request]

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v4
4 changes: 2 additions & 2 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -14,6 +14,6 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
29 changes: 29 additions & 0 deletions .github/workflows/mssql-container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build Image for MSSQL

on:
workflow_dispatch:

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Docker image
working-directory: internal/dbtest/mssql-docker
run: |
docker build -t ghcr.io/${{ github.repository_owner }}/mssql:latest .
# 推送镜像到 GHCR
- name: Push Docker image
run: |
docker push ghcr.io/${{ github.repository_owner }}/mssql:latest
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -9,7 +9,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ncipollo/release-action@v1
with:
body: Check CHANGELOG.md for details
body:
Please refer to [CHANGELOG.md](https://github.com/uptrace/bun/blob/master/CHANGELOG.md)
for details
41 changes: 41 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Prune stale issues/prs
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *'

permissions:
contents: read

jobs:
prune_stale:
permissions:
issues: write # for actions/stale to close stale issues
pull-requests: write # for actions/stale to close stale PRs
name: Prune Stale
runs-on: ubuntu-22.04
# do not run it in forked repos
if: github.repository == 'uptrace/bun'

steps:
- name: Prune Stale
uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 30
stale-issue-message: >
This issue has been automatically marked as stale because it has not had activity in the
last 30 days.
If there is no update within the next 7 days, this issue will be closed.
stale-pr-message: >
This pull request has been automatically marked as stale because it has not had
activity in the last 30 days.
If there is no update within the next 7 days, this pr will be closed.
Please feel free to give a status update now, ping for review, when it's ready.
Thank you for your contributions!
stale-issue-label: 'stale'
exempt-issue-labels: 'no stalebot,help wanted'
stale-pr-label: 'stale'
exempt-pr-labels: 'no stalebot'
operations-per-run: 64
ascending: true
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Patterns for files created by this project.
# For other files, use global gitignore.
*.s3db
*.prof
*.test
.idea
File renamed without changes.
Loading