Skip to content

Commit

Permalink
Update Build Verification CI
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonDev07 committed Sep 23, 2024
1 parent 6ea6213 commit 1b54480
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Build MeepMeep

on:
push:
pull_request:
types:
- opened
workflow_dispatch:

permissions:
Expand All @@ -25,4 +27,23 @@ jobs:
run: ./gradlew --no-daemon build

- name: Test MeepMeep
run: ./gradlew --no-daemon test
run: ./gradlew --no-daemon test

- name: Report status
uses: actions/github-script@v6
with:
script: |
const { context, github } = require('@actions/github');
const { owner, repo } = context.repo;
const pull_request = context.payload.pull_request;
if (pull_request) {
await github.repos.createCommitStatus({
owner,
repo,
sha: pull_request.head.sha,
state: 'success',
context: 'Build MeepMeep',
description: 'The build succeeded!',
});
}

0 comments on commit 1b54480

Please sign in to comment.