forked from eclipse-xpanse/tofu-maker
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 806 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Huawei Inc.
#
name: tofu-maker-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 OpenTofu
uses: opentofu/[email protected]
with:
tofu_version: 1.6.0
- name: Format check
run: mvn spotless:check && mvn checkstyle:check
- name: Build & Test
run: mvn --batch-mode --update-snapshots --no-transfer-progress verify