Skip to content

feat: Support defaults for arrays of primitive item types in terraform, fix: respect operation level OAuthScopes, fix deserialization bug for union of boolean and enums in ruby #3673

feat: Support defaults for arrays of primitive item types in terraform, fix: respect operation level OAuthScopes, fix deserialization bug for union of boolean and enums in ruby

feat: Support defaults for arrays of primitive item types in terraform, fix: respect operation level OAuthScopes, fix deserialization bug for union of boolean and enums in ruby #3673

Workflow file for this run

name: Validate
on:
pull_request:
jobs:
build:
name: Conventional pull request names
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
golangci-lint:
permissions:
contents: read
runs-on:
group: ubuntu-latest-large
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version-file: "go.mod"
- name: Configure git for private modules
env:
GIT_AUTH_TOKEN: ${{ secrets.BOT_REPO_TOKEN }}
run: git config --global url."https://speakeasybot:${GIT_AUTH_TOKEN}@github.com".insteadOf "https://github.com"
- uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
with:
version: v2.4.0
args: --timeout=10m --verbose
build-test:
name: Build & Test
if: ${{ github.event.pull_request.draft == false }}
permissions:
contents: read
id-token: write
actions: read
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on:
group: "${{ matrix.os }}-large"
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Go (Linux)
if: runner.os == 'Linux'
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version-file: "go.mod"
- name: Set up Go (Windows)
if: runner.os == 'Windows'
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version-file: "go.mod"
# Reference: https://github.com/actions/setup-go/issues/495
cache: false
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: "3.9"
- name: Set up Node
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
- uses: ruby/setup-ruby@cf7216d52fba1017929b4d7162fabe2b30af5b49 # v1.262.0
with:
ruby-version: "3.2"
bundler-cache: true
- name: Set up gotestfmt
run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest
- name: Configure git for private modules (Linux)
if: runner.os == 'Linux'
env:
GIT_AUTH_TOKEN: ${{ secrets.BOT_REPO_TOKEN }}
run: git config --global url."https://speakeasybot:${GIT_AUTH_TOKEN}@github.com".insteadOf "https://github.com"
- name: Configure git for private modules (Windows)
if: runner.os == 'Windows'
env:
GIT_AUTH_TOKEN: ${{ secrets.BOT_REPO_TOKEN }}
run: git config --global url."https://speakeasybot:${env:GIT_AUTH_TOKEN}@github.com".insteadOf "https://github.com"
- name: Build
run: go build ./...
- run: go test -json -v -p 1 -timeout=20m ./... | gotestfmt
env:
SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}