Skip to content

Commit

Permalink
github checks for build
Browse files Browse the repository at this point in the history
  • Loading branch information
penguin212 committed Jan 25, 2024
1 parent 0a99066 commit e1aff45
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build and test robot code
on: push
jobs:
build:
runs-on: ubuntu-latest
container: wpilib/roborio-cross-ubuntu:2024-22.04
steps:
- uses: actions/checkout@v3
- name: Add repository to git safe directories
run: git config --global --add safe.directory $GITHUB_WORKSPACE
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Compile and run tests on robot code
run: ./gradlew build
- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@master
with:
status: ${{ job.status }}
notify_when: 'failure'
token: ${{ secrets.GITHUB_TOKEN }}
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}

0 comments on commit e1aff45

Please sign in to comment.