From 896bf84759f3b2dec6256e803637c68cc32b2fee Mon Sep 17 00:00:00 2001 From: Seonghyeon Cho Date: Sat, 13 Apr 2024 21:55:55 +0900 Subject: [PATCH] build workflow --- .github/workflows/ci.yaml | 29 +++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..4951f86 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,29 @@ +name: CI +on: + push: + branches: + - main + pull_request: + # For test + workflow_dispatch: + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + java: [17, 21] + steps: + - uses: actions/checkout@v4 + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: ${{ matrix.java }} + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + + - run: ./gradlew build diff --git a/README.md b/README.md index 3b29676..ec4f8e0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # netty-practice +[![CI](https://github.com/vince-test-org/netty-practice/actions/workflows/ci.yaml/badge.svg?branch=main&event=push)](https://github.com/vince-test-org/netty-practice/actions/workflows/ci.yaml) +