Skip to content

Commit

Permalink
Merge pull request #10 from lamngockhuong/feature.new.add_github_ci
Browse files Browse the repository at this point in the history
Add github CI
  • Loading branch information
khuongln-1346 authored Nov 21, 2023
2 parents 4ebee3a + f6c885b commit e6da196
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-and-test-barcode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Build & Test project: barcode"

on:
push:
branches: [ "main" ]
paths:
- 'barcode/**'
- '!**/README*.md'
pull_request:
branches: [ "main" ]
paths:
- 'barcode/**'
- '!**/README*.md'

permissions:
contents: read

jobs:
build:
env:
project_dir: barcode
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build
build-root-directory: ${{ env.project_dir }}
36 changes: 36 additions & 0 deletions .github/workflows/build-and-test-some-utils.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Build & Test project: some-utils"

on:
push:
branches: [ "main" ]
paths:
- 'some-utils/**'
- '!**/README*.md'
pull_request:
branches: [ "main" ]
paths:
- 'some-utils/**'
- '!**/README*.md'

permissions:
contents: read

jobs:
build:
env:
project_dir: some-utils
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build
build-root-directory: ${{ env.project_dir }}

0 comments on commit e6da196

Please sign in to comment.