Add a function registry for a given BFT dialect #107
Workflow file for this run
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
# SPDX-License-Identifier: Apache-2.0 | |
name: PR Build Check | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: Build and Test (${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '>=1.18' | |
cache: true | |
- name: Install staticcheck | |
run: go install honnef.co/go/tools/cmd/staticcheck@latest | |
- name: Build | |
run: go build ./... | |
- name: Run Tests | |
if: runner.os != 'Linux' | |
run: go test -v ./... | |
- name: Run Tests with Coverage | |
if: runner.os == 'Linux' | |
run: go test -v -coverprofile=coverage.out $(go list ./... | grep -v /proto) | |
- name: Upload coverage to Codecov | |
if: runner.os == 'Linux' && github.repository == 'substrait-io/substrait-go' | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
disable_search: true | |
file: ./coverage.out | |
fail_ci_if_error: true | |
- name: Lint | |
run: staticcheck -f stylish ./... |