-
Notifications
You must be signed in to change notification settings - Fork 4
31 lines (30 loc) · 1.04 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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.3.7'
FDB_CLIENTS_DEB_SHA256_SUM: '1b620971319c3ad149f2fb09b2fed639fb558120a296538133c4f2358836e983'
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 ./...