Ft/adjust project and build files #5
This file contains hidden or 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: CI Workflow | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| GO_VERSION: "1.23" | |
| jobs: | |
| main: | |
| name: CI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Go ${{ env.GO_VERSION }} | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Install pulumictl | |
| uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # tag=v2.1.0 | |
| with: | |
| repo: pulumi/pulumictl | |
| - name: Debugging | |
| run: | | |
| which pulumictl | |
| pulumictl get version --language generic --debug | |
| - name: Build sdks | |
| run: make build | |
| - 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 |