Skip to content

Commit

Permalink
Merge pull request #36 from KevinnZou/feature/ci_setup
Browse files Browse the repository at this point in the history
Feature/ci setup
  • Loading branch information
KevinnZou authored Oct 31, 2023
2 parents e8791d0 + 2153373 commit 8e26df2
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions .github/workflows/code_style.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8e26df2

Please sign in to comment.