feat(ci): ensure docs are up-to-date on PRs (#767)
relates to STACKITTPR-153
This commit is contained in:
parent
c41d61cdc4
commit
37754e865d
4 changed files with 33 additions and 2 deletions
2
.github/pull_request_template.md
vendored
2
.github/pull_request_template.md
vendored
|
|
@ -12,7 +12,7 @@ relates to #1234
|
|||
- [ ] Issue was linked above
|
||||
- [ ] Code format was applied: `make fmt`
|
||||
- [ ] Examples were added / adjusted (see `examples/` directory)
|
||||
- [ ] Docs are up-to-date: `make generate-docs`
|
||||
- [x] Docs are up-to-date: `make generate-docs` (will be checked by CI)
|
||||
- [ ] Unit tests got implemented or updated
|
||||
- [ ] Acceptance tests got implemented or updated (see e.g. [here](https://github.com/stackitcloud/terraform-provider-stackit/blob/f5f99d170996b208672ae684b6da53420e369563/stackit/internal/services/dns/dns_acc_test.go))
|
||||
- [x] Unit tests are passing: `make test` (will be checked by CI)
|
||||
|
|
|
|||
10
.github/workflows/ci.yaml
vendored
10
.github/workflows/ci.yaml
vendored
|
|
@ -12,13 +12,23 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build
|
||||
uses: ./.github/actions/build
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
|
||||
- name: Setup Terraform
|
||||
uses: hashicorp/setup-terraform@v2
|
||||
with:
|
||||
terraform_wrapper: false
|
||||
|
||||
- name: "Ensure docs are up-to-date"
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
run: ./scripts/check-docs.sh
|
||||
|
||||
- name: Lint
|
||||
run: make lint
|
||||
|
||||
- name: Test
|
||||
run: make test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue