Skip to content

feat: setup the release CICD and github workflow #1

feat: setup the release CICD and github workflow

feat: setup the release CICD and github workflow #1

Workflow file for this run

name: Test
on:
push:
branches:
- develop
- main
tags:
- "v[0-9]+.[0-9]+.[0-9]+*" # Push events to matching tags v1.0.0, v1.0.1, v1.1.0, v2.0.0, etc.
pull_request:
jobs:
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.21" # The Go version to download (if necessary) and use.
# Some tests, notably TestRandomOperations, are extremely slow in CI
# with the race detector enabled, so we use -short when -race is
# enabled to reduce the number of slow tests, and then run without
# -short with -race disabled for a larger test set. The same tests
# are run, just with smaller data sets.
#
# We also do a 32-bit run. Even though this is executed on a 64-bit
# system, it will use 32-bit instructions and semantics (e.g. 32-bit
# integer overflow).
- name: test & coverage report creation
run: |
make test
env:
CGO_CFLAGS: "-O -D__BLST_PORTABLE__"
CGO_CFLAGS_ALLOW: "-O -D__BLST_PORTABLE__"