feat: prepare upstream 0.30.1 release #212
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Verify | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pull-requests: read | |
env: | |
PROVIDER: proxmoxve | |
GO111MODULE: "on" | |
jobs: | |
conform: | |
runs-on: ubuntu-latest | |
name: Conform | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: siderolabs/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
provider: | |
runs-on: ubuntu-latest | |
name: Lint Provider | |
strategy: | |
max-parallel: 4 | |
matrix: | |
go-version: [1.20.x] | |
golangci-lint-version: [v1.52.1] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "${{ matrix.go-version }}" | |
- name: Install pulumictl | |
uses: jaxxstorm/[email protected] | |
with: | |
repo: pulumi/pulumictl | |
- name: Install Pulumi CLI | |
uses: pulumi/actions@v4 | |
- name: Build Provider | |
run: make provider | |
- name: Lint Provider | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: "${{ matrix.golangci-lint-version }}" | |
working-directory: provider | |
args: -c ../.golangci.yml | |
skip-pkg-cache: true | |
skip-build-cache: true | |
sdk: | |
runs-on: ubuntu-latest | |
name: Build SDK | |
strategy: | |
max-parallel: 10 | |
matrix: | |
go-version: [1.20.x] | |
node-version: [18.x] | |
dotnet-version: [3.1.301] | |
python-version: [3.9] | |
java-version: [11] | |
language: | |
- go | |
- nodejs | |
- python | |
- dotnet | |
- java | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "${{ matrix.go-version }}" | |
- name: Install pulumictl | |
uses: jaxxstorm/[email protected] | |
with: | |
repo: pulumi/pulumictl | |
- name: Install Pulumi CLI | |
uses: pulumi/actions@v4 | |
- name: Setup DotNet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: "${{ matrix.dotnet-version }}" | |
if: matrix.language == 'dotnet' | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "${{ matrix.python-version }}" | |
if: matrix.language == 'python' | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "${{ matrix.node-version }}" | |
if: matrix.language == 'nodejs' | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: corretto | |
java-version: ${{ matrix.java-version }} | |
if: matrix.language == 'java' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
if: matrix.language == 'java' | |
- name: Build SDK | |
run: make build_${{ matrix.language }} |