Skip to content

Commit

Permalink
Remove custom commit status and add test step
Browse files Browse the repository at this point in the history
  • Loading branch information
SirEndii committed Apr 1, 2024
1 parent 1763215 commit af813b0
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ name: build-and-test
run-name: Build and test the changes
on: [push, pull_request, workflow_dispatch]
jobs:
commit-status-start:
name: Set start commit status
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set start commit status
uses: myrotvorets/set-commit-status-action@v2.0.1
with:
context: Building AP
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Build with Gradle
run: ./gradlew check
build:
name: Build
runs-on: ubuntu-latest
Expand All @@ -19,14 +21,4 @@ jobs:
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Build with Gradle
run: ./gradlew build
commit-status-final:
name: Set final commit status
runs-on: ubuntu-latest
needs: build
steps:
- name: Set final commit status
uses: myrotvorets/set-commit-status-action@v2.0.1
with:
status: ${{ needs.build.result }}
context: Building AP
run: ./gradlew build

0 comments on commit af813b0

Please sign in to comment.