Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Workflow added (Github) #2

Merged
merged 2 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates


# Note to people reading this: this is a commented out file so it doesn't do anything at the moment,
# but this just automatically updates junit dependencies. Not really necessary, as you usually do it
# yourself, but good to make commits more clear as to what they are and slightly reduces irrelevant changes
# when trying to find out what a commit someone else did does. Feel free to use it if you want to
# constantly accept pull requests lol.


# version: 2
# updates:
# - package-ecosystem: "gradle"
# directory: "/" # Location of package manifests
# schedule:
# interval: "weekly"
# day: "friday"
# time: "09:00"
# timezone: "America/Chicago"
# labels:
# - "dependabot"
# target-branch: "main"
# groups:
# junit:
# patterns:
# - "org.junit*" # A wildcard string that matches multiple dependency names
# update-types:
# - "minor"
# - "patch"
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build

on:
# These fields being blank makes it apply to all branches and PRs.
push:
pull_request:

jobs:
build:
# For future maintainers, taken from: https://docs.wpilib.org/en/stable/docs/software/advanced-gradlerio/robot-code-ci.html
# Check back there and compare if it doesn't work next year.
runs-on: ubuntu-22.04
container: wpilib/roborio-cross-ubuntu:2025-22.04
steps:
- uses: actions/checkout@v4
- 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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# FRC-2025-REEFSCAPE-
# FRC-2025-REEFSCAPE
[![Build](https://github.com/awtybots/FRC-2025-REEFSCAPE/actions/workflows/build.yml/badge.svg)](https://github.com/awtybots/FRC-2025-REEFSCAPE/actions/workflows/build.yml)
Best robot ever :)