Skip to content

add support for derived metrics #48

add support for derived metrics

add support for derived metrics #48

Workflow file for this run

# Copyright 2022 Tetrate
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# yamllint --format github .github/workflows/ci.yaml
---
name: CI
on: [push, pull_request]
env:
GOPROXY: https://proxy.golang.org
GOVERSION: 1.17.2 # must match go.mod
jobs:
sanity:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
with:
go-version: ${{ env.GOVERSION }}
- uses: actions/checkout@v2
- run: make check
build:
needs: sanity
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
with:
go-version: ${{ env.GOVERSION }}
- uses: actions/checkout@v2
- run: make build
test:
needs: sanity
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
with:
go-version: ${{ env.GOVERSION }}
- uses: actions/checkout@v2
- run: make test
coverage:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
with:
go-version: ${{ env.GOVERSION }}
- uses: actions/checkout@v2
- run: make coverage
- uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./build/coverage.out
lint:
needs: sanity
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
with:
go-version: ${{ env.GOVERSION }}
- uses: actions/checkout@v2
- run: make lint