Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwonminwoo authored Dec 15, 2023
1 parent a39d3e9 commit fd213db
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI

on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "develop" ]

permissions:
contents: read

jobs:
build:
name: Build and test project
runs-on: ubuntu-latest

steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'oracle'

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
uses: gradle/[email protected]
with:
arguments: build
cache-read-only: ${{ github.ref != 'ref/heads/main' && github.ref != 'ref/heads/develop' }}

# - name: Publish result of unit test
# uses: EnricoMi/publish-unit-test-result-action@v2
# if: always()
# with:
# files: "**/build/test-results/test/TEST-*.xml"
# github_token: ${{ github.token }}

# - name: Publish failure of unit test
# uses: mikepenz/action-junit-report@v3
# if: always()
# with:
# report_paths: '**/build/test-results/test/TEST-*.xml'
# github_token: ${{ github.token }}

0 comments on commit fd213db

Please sign in to comment.