-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run go tests via CI and publish head of
main
container
Run tests with race detection on push or PR creation. Publish the unreleased head of main as a container for testing purposes.
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
release: | ||
types: | ||
- published | ||
|
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,31 @@ | ||
name: Go Test | ||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
unit: | ||
name: Unit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.20.x" | ||
- name: Install FoundationDB Client C bindings | ||
env: | ||
FDB_VERSION: '7.1.33' | ||
FDB_CLIENTS_DEB_SHA256_SUM: 'd73002bc796de7ce0158f1eb64fab1f8e90bada2edd90599d9b40754220150af' | ||
shell: bash | ||
run: | | ||
wget "https://github.com/apple/foundationdb/releases/download/${FDB_VERSION}/foundationdb-clients_${FDB_VERSION}-1_amd64.deb" | ||
echo "${FDB_CLIENTS_DEB_SHA256_SUM} foundationdb-clients_${FDB_VERSION}-1_amd64.deb" | sha256sum --check | ||
sudo dpkg --force-all -i foundationdb-clients_${FDB_VERSION}-1_amd64.deb | ||
- name: Go information | ||
run: | | ||
go version | ||
go env | ||
- name: Run tests | ||
run: go test -v -shuffle=on ./... | ||
- name: Run tests with race detector | ||
run: go test -v -race ./... |