service state management validate lock for modification #3670
Workflow file for this run
This file contains 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
# | |
# SPDX-License-Identifier: Apache-2.0 | |
# SPDX-FileCopyrightText: Huawei Inc. | |
# | |
name: xpanse-ci | |
# Run this workflow every time a new commit push to the repository | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set Up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 21 | |
distribution: 'temurin' | |
- name: Set up Terraform | |
uses: hashicorp/setup-terraform@v3 | |
with: | |
terraform_version: 1.6.0 | |
- name: Set up OpenTofu | |
uses: opentofu/[email protected] | |
with: | |
tofu_version: 1.7.0 | |
- name: Format check | |
run: mvn spotless:check && mvn checkstyle:check | |
- name: Build | |
run: mvn --batch-mode --update-snapshots --no-transfer-progress verify | |
- name: Generate API doc | |
run: mvn verify -DskipTests -Pgenerate-openapi-doc | |
- name: Validate OpenAPI definition | |
uses: swaggerexpert/swagger-editor-validate@v1 | |
with: | |
definition-file: runtime/target/openapi.json |