-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Which problem is this PR solving? - replaces #347, which needed a license update. ## Short description of the changes - update makefile with latest license needs based on Refinery repo - run make update-licenses - update dependencies
- Loading branch information
1 parent
ea30018
commit 7b17874
Showing
41 changed files
with
1,800 additions
and
676 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Copyright (c) 2009 The Go Authors. All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are | ||
met: | ||
|
||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above | ||
copyright notice, this list of conditions and the following disclaimer | ||
in the documentation and/or other materials provided with the | ||
distribution. | ||
* Neither the name of Google Inc. nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,14 @@ env: | |
MYSQL_TEST_CONCURRENT: 1 | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dominikh/[email protected] | ||
with: | ||
version: "2023.1.6" | ||
|
||
list: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
|
@@ -23,19 +31,18 @@ jobs: | |
import os | ||
go = [ | ||
# Keep the most recent production release at the top | ||
'1.19', | ||
'1.21', | ||
# Older production releases | ||
'1.20', | ||
'1.19', | ||
'1.18', | ||
'1.17', | ||
'1.16', | ||
'1.15', | ||
'1.14', | ||
'1.13', | ||
] | ||
mysql = [ | ||
'8.1', | ||
'8.0', | ||
'5.7', | ||
'5.6', | ||
'mariadb-10.11', | ||
'mariadb-10.6', | ||
'mariadb-10.5', | ||
'mariadb-10.4', | ||
|
@@ -45,7 +52,7 @@ jobs: | |
includes = [] | ||
# Go versions compatibility check | ||
for v in go[1:]: | ||
includes.append({'os': 'ubuntu-latest', 'go': v, 'mysql': mysql[0]}) | ||
includes.append({'os': 'ubuntu-latest', 'go': v, 'mysql': mysql[0]}) | ||
matrix = { | ||
# OS vs MySQL versions | ||
|
@@ -66,8 +73,8 @@ jobs: | |
fail-fast: false | ||
matrix: ${{ fromJSON(needs.list.outputs.matrix) }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- uses: shogo82148/actions-setup-mysql@v1 | ||
|
@@ -82,13 +89,14 @@ jobs: | |
; TestConcurrent fails if max_connections is too large | ||
max_connections=50 | ||
local_infile=1 | ||
performance_schema=on | ||
- name: setup database | ||
run: | | ||
mysql --user 'root' --host '127.0.0.1' -e 'create database gotest;' | ||
- name: test | ||
run: | | ||
go test -v '-covermode=count' '-coverprofile=coverage.out' | ||
go test -v '-race' '-covermode=atomic' '-coverprofile=coverage.out' -parallel 10 | ||
- name: Send coverage | ||
uses: shogo82148/actions-goveralls@v1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.