Skip to content

Commit

Permalink
ci: deploy and test workflow updates (#10)
Browse files Browse the repository at this point in the history
* ci: Update and rename build.yml to cd.yml

* ci: Create test.yml

* Delete .github/workflows/test.yml

* ci: Create test.yml

* Update test.yml
  • Loading branch information
Anush008 authored Dec 14, 2023
1 parent 6ce7f19 commit dc75e03
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml → .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: Build
name: Build and Deploy

on:
push:
branches: [ "master" ]
pull_request_target:
branches: [ "master" ]

permissions:
contents: read
contents: write
checks: write

jobs:
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test

on:
pull_request:
types:
- opened
- edited
- synchronize
- reopened

permissions:
contents: write
checks: write

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: Build
uses: gradle/gradle-build-action@v2
with:
gradle-version: 8.5
arguments: build

- name: Test
uses: gradle/gradle-build-action@v2
with:
gradle-version: 8.5
arguments: test

0 comments on commit dc75e03

Please sign in to comment.