Skip to content

Adjust project files and configuration #24

Adjust project files and configuration

Adjust project files and configuration #24

Workflow file for this run

name: CI Workflow
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: write
id-token: write
env:
GO_VERSION: "1.24"
DOTNET_VERSION: 3.1.301
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_VERSION: 20.x
PYTHON_VERSION: "3.9"
jobs:
main:
name: CI
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # tag=v2.1.0
with:
repo: pulumi/pulumictl
- name: Install pulumi
uses: pulumi/actions@v4
- name: Install Go Tools
uses: ./.github/actions/gotools
with:
go-version: ${{ env.GO_VERSION }}
- name: Setup Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # tag=v4.4.0
with:
node-version: ${{ env.NODE_VERSION }}
- name: Setup DotNet
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # tag=v2.1.0
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Setup Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # tag=v5.6.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Build sdks
run: make generate_sdks
- name: Lint
run: make lint_provider
config:
name: Check GoReleaser config
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
args: check