Skip to content

feat: Add enterprise billing usage endpoints and response types #7024

feat: Add enterprise billing usage endpoints and response types

feat: Add enterprise billing usage endpoints and response types #7024

Workflow file for this run

concurrency:
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- master
pull_request:
branches:
- master
name: tests
env:
GO111MODULE: on
permissions:
contents: read
jobs:
test:
permissions:
contents: read
id-token: write
defaults:
run:
shell: bash
strategy:
matrix:
go-version: [stable, oldstable] # test with N and the .0 release of N-1
platform: [ubuntu-latest]
include:
# include windows, but only with the latest Go version, since there
# is very little in the library that is platform specific
- go-version: stable
platform: windows-latest
# only update test coverage stats with the most recent go version on linux
- go-version: stable
platform: ubuntu-latest
update-coverage: true
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: "**/go.sum"
- name: Run go test
run: |
if [ -n "${{ matrix.update-coverage }}" ]; then
script/test.sh -race -covermode atomic -coverprofile coverage.txt ./...
exit
fi
script/test.sh -race -covermode atomic ./...
- name: Ensure integration tests build
# don't actually run tests since they hit live GitHub API
run: go test -v -tags=integration -run=^$ ./test/integration
- name: Upload coverage to Codecov
if: ${{ matrix.update-coverage }}
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
with:
use_oidc: true