diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..e2d51b20 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: Build Multiplatform project +on: + push: + branches: + - main + - feature/ci_setup + pull_request: + +jobs: + build-multiplatform-project: + strategy: + fail-fast: false + matrix: + os: [ubuntu-20.04, macos-12, windows-2022] + gradle: [8.3] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: 'corretto' + java-version: '17' + - name: Build Multiplatform project + shell: bash + run: ./gradlew assemble \ No newline at end of file diff --git a/.github/workflows/code_style.yml b/.github/workflows/code_style.yml new file mode 100644 index 00000000..edaff914 --- /dev/null +++ b/.github/workflows/code_style.yml @@ -0,0 +1,20 @@ +name: Check code style +on: + push: + branches: + - main + - feature/ci_setup + pull_request: + +jobs: + check-code-style: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: 'corretto' + java-version: '17' + - name: Check code style + shell: bash + run: ./gradlew ktlintCheck \ No newline at end of file