Skip to content

updated with goki generate update #88

updated with goki generate update

updated with goki generate update #88

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build
strategy:
matrix:
go-version: [1.21.x]
platform: [ubuntu-latest] # not macos-latest
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Cache-Go
uses: actions/cache@v1
with:
path: |
~/go/pkg/mod # Module download cache
~/.cache/go-build # Build cache (Linux)
~/Library/Caches/go-build # Build cache (Mac)
'%LocalAppData%\go-build' # Build cache (Windows)
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Checkout code
uses: actions/checkout@v2
- name: Build
run: |
go build -v ./...
- name: Test
run: |
go test ./...
- name: Upload-Coverage
if: matrix.platform == 'ubuntu-latest'
run: bash <(curl -s https://codecov.io/bash)