Skip to content

Atree Register Inlining and Data Deduplication #581

Atree Register Inlining and Data Deduplication

Atree Register Inlining and Data Deduplication #581

Workflow file for this run

# GitHub Actions - CI for Go to build & test.
# Based on copy of https://github.com/fxamacker/cbor/workflows/ci.yml
name: ci
# Remove default permissions at top level and grant in jobs.
permissions: {}
on:
workflow_dispatch:
push:
branches:
- main
- 'feature/**'
- 'v**'
pull_request:
branches:
- main
- 'feature/**'
- 'v**'
jobs:
# Test on various OS with default Go version.
tests:
name: Test on ${{matrix.os}}
runs-on: ${{ matrix.os }}
permissions:
contents: read
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
go-version: [1.17, 1.18, 1.19]
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
check-latest: true
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Get dependencies
run: go get -v -t -d ./...
- name: Build project
run: go build ./...
- name: Run tests
run: |
go version
go test -timeout 60m -race -v ./...