Ft/adjust project and build files #8
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 | ||
| permissions: | ||
| contents: write | ||
| id-token: write | ||
| env: | ||
| GO_VERSION: "1.23" | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| 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: Install pulumi | ||
| uses: pulumi/actions@v4 | ||
| - name: Setup Node | ||
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # tag=v4.4.0 | ||
| with: | ||
| node-version: ${{matrix.nodeversion}} | ||
| registry-url: ${{env.NPM_REGISTRY_URL}} | ||
| - name: Setup DotNet | ||
| uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # tag=v2.1.0 | ||
| with: | ||
| dotnet-version: ${{matrix.dotnetverson}} | ||
| - name: Setup Python | ||
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # tag=v5.6.0 | ||
| with: | ||
| python-version: ${{matrix.pythonversion}} | ||
| - name: Debugging | ||
| run: | | ||
| which pulumictl | ||
| make tfgen | ||
| # pulumictl get version --language generic --debug | ||
| #- name: Build sdks | ||
| # run: make build | ||
| - name: Lint | ||
| run: make lint_provider | ||
| strategy: | ||
| fail-fast: true | ||
| matrix: | ||
| dotnetversion: | ||
| - 3.1.301 | ||
| goversion: | ||
| - ${{ env.GO_VERSION }} | ||
|
Check failure on line 70 in .github/workflows/ci.yaml
|
||
| language: | ||
| - nodejs | ||
| - python | ||
| - dotnet | ||
| - go | ||
| nodeversion: | ||
| - 20.x | ||
| pythonversion: | ||
| - "3.9" | ||
| 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 | ||