Skip to content

update readme

update readme #1158

Workflow file for this run

on: [push, pull_request]
name: CI
jobs:
ci:
runs-on: ubuntu-latest
env:
REVIEWDOG_REPORTER: github-check
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.20.x
- name: Install Reviewdog
uses: reviewdog/action-setup@v1
with:
reviewdog_version: v0.11.0
- name: Checkout code
uses: actions/checkout@v2
- name: Download Go Deps
run: go mod download
- name: Install Tools
run: |
# install 7zip for decompressing test demos
sudo apt-get install -y p7zip-full
# Install interface generator
go install github.com/vburenin/ifacemaker@v1.2.1
# Fetch refs for linter
git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
git fetch
# Install golangci-lint
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.52.2
- name: Build
run: scripts/build.sh
- name: Check Generated Code
run: scripts/check-interfaces-generated.sh
- name: Lint Changed Code
run: scripts/lint-changes.sh
continue-on-error: true
- name: Race Tests
run: scripts/race-tests.sh
# Note: We run ALL tests again to get full coverage
# Race tests are too slow and skip the regression set
- name: All Tests + Coverage
run: |
scripts/coverage.sh
bash <(curl -s https://codecov.io/bash)