Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

feat: string/int64 validator OneOfWithDescriptionIfAttributeIsOneOf #67

feat: string/int64 validator OneOfWithDescriptionIfAttributeIsOneOf

feat: string/int64 validator OneOfWithDescriptionIfAttributeIsOneOf #67

Workflow file for this run

# Terraform Provider testing workflow.
name: Tests
# This GitHub action runs your tests for each pull request and push.
# Optionally, you can turn it on using a schedule for regular testing.
on:
pull_request:
branches:
- main
paths:
- '**.go'
# Testing only needs permissions to read the repository contents.
permissions:
contents: read
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
cache: true
- run: go mod download
- name: Run linters
uses: golangci/golangci-lint-action@v3
with:
version: latest
coverage:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go:
- '1.20'
- '1.19'
- '1.18'
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v3
- run: go test -v -coverprofile=profile.cov ./...
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov
flag-name: Go-${{ matrix.go }}
parallel: true
# notifies that all test jobs are finished.
coverage-finish:
needs: coverage
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true