diff --git a/.github/workflows/build-and-test-barcode.yml b/.github/workflows/build-and-test-barcode.yml new file mode 100644 index 0000000..9642819 --- /dev/null +++ b/.github/workflows/build-and-test-barcode.yml @@ -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 }} diff --git a/.github/workflows/build-and-test-some-utils.yml b/.github/workflows/build-and-test-some-utils.yml new file mode 100644 index 0000000..5323ac3 --- /dev/null +++ b/.github/workflows/build-and-test-some-utils.yml @@ -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 }}