fix: Ensure Version field is handled correctly when bootstrapping TF module Promise #280
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: Kratix CLI Tests | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches-ignore: | |
| - 'release-please--*' | |
| jobs: | |
| unit-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: 1.24 | |
| check-latest: true | |
| - name: Install Terraform CLI | |
| uses: hashicorp/setup-terraform@v3 | |
| - name: Run make test | |
| run: make test | |
| - name: Run govulncheck | |
| run: | | |
| go install golang.org/x/vuln/cmd/govulncheck@latest | |
| govulncheck ./... | |
| update-release-pr: | |
| runs-on: ubuntu-latest | |
| needs: [unit-test] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - run: npm install -g release-please | |
| - name: Create pending releases | |
| if: github.ref == 'refs/heads/main' | |
| env: | |
| TOKEN: ${{ secrets.RELEASE_CREATOR_TOKEN }} | |
| run: | | |
| release-please \ | |
| --token=$TOKEN \ | |
| --repo-url=syntasso/kratix-cli \ | |
| github-release | |
| - name: Update Release PR | |
| if: github.ref == 'refs/heads/main' | |
| env: | |
| TOKEN: ${{ secrets.RELEASE_CREATOR_TOKEN }} | |
| run: | | |
| release-please \ | |
| --token=$TOKEN \ | |
| --repo-url=syntasso/kratix-cli \ | |
| release-pr |