From: moo Date: Tue, 25 Aug 2026 00:00:57 +0000 (-0700) Subject: fix file placement and some other stuffOC X-Git-Url: https://git.taranathan.com/?a=commitdiff_plain;h=9e9c61495cdd878376f4887f31ce6b21d154277a;p=FRC2027.git fix file placement and some other stuffOC --- diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..ff01304 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,2 @@ +# Make the pull reviewers code owners for every file, they will get requested for review when a PR is made +* @moogoesmeow0 @iefomit \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..959edae --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,15 @@ +## Overview + +This PR will... + + +## Documentation + + + +## Tests Ran + + + +## Additional Notes + \ No newline at end of file diff --git a/.github/workflows/autofmt.yml b/.github/workflows/autofmt.yml new file mode 100644 index 0000000..449022c --- /dev/null +++ b/.github/workflows/autofmt.yml @@ -0,0 +1,23 @@ +name: Format + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + + formatting: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 # v2 minimum required + + - name: Set up java + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: '21' + - uses: axel-op/googlejavaformat-action@v4 + with: + args: "--skip-sorting-imports --replace" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..faa5948 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,42 @@ +# This is a basic workflow to build robot code. credit: WPI + +name: CI + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the main branch. +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # This grabs the WPILib docker container + container: wpilib/roborio-cross-ubuntu:2023-22.04 + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + # Declares the repository safe and not under dubious ownership. + - name: Add repository to git safe directories + run: git config --global --add safe.directory $GITHUB_WORKSPACE + + # Grant execute permission for gradlew + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + # Call gversion to make the version file + - name: Create BuildData.java + run: ./gradlew createVersionFile + + # Runs a single command using the runners shell + - name: Compile and run tests on robot code + run: ./gradlew build diff --git a/.gitignore b/.gitignore index 34cbaac..507b088 100644 --- a/.gitignore +++ b/.gitignore @@ -185,3 +185,5 @@ compile_commands.json # Eclipse generated file for annotation processors .factorypath + +.devenv diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 120000 index 0000000..8bb30c1 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1 @@ +/nix/store/v4kzm5f26kwn1sxxllyjrjfyl2bpqay3-pre-commit-config.json \ No newline at end of file diff --git a/CODEOWNERS b/CODEOWNERS deleted file mode 100644 index ff01304..0000000 --- a/CODEOWNERS +++ /dev/null @@ -1,2 +0,0 @@ -# Make the pull reviewers code owners for every file, they will get requested for review when a PR is made -* @moogoesmeow0 @iefomit \ No newline at end of file diff --git a/PULL_REQUEST_TEMPLATE.md b/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 959edae..0000000 --- a/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,15 +0,0 @@ -## Overview - -This PR will... - - -## Documentation - - - -## Tests Ran - - - -## Additional Notes - \ No newline at end of file diff --git a/workflows/autofmt.yml b/workflows/autofmt.yml deleted file mode 100644 index 449022c..0000000 --- a/workflows/autofmt.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Format - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - - formatting: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 # v2 minimum required - - - name: Set up java - uses: actions/setup-java@v4 - with: - distribution: temurin - java-version: '21' - - uses: axel-op/googlejavaformat-action@v4 - with: - args: "--skip-sorting-imports --replace" diff --git a/workflows/main.yml b/workflows/main.yml deleted file mode 100644 index faa5948..0000000 --- a/workflows/main.yml +++ /dev/null @@ -1,42 +0,0 @@ -# This is a basic workflow to build robot code. credit: WPI - -name: CI - -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the main branch. -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # This grabs the WPILib docker container - container: wpilib/roborio-cross-ubuntu:2023-22.04 - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 - - # Declares the repository safe and not under dubious ownership. - - name: Add repository to git safe directories - run: git config --global --add safe.directory $GITHUB_WORKSPACE - - # Grant execute permission for gradlew - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - # Call gversion to make the version file - - name: Create BuildData.java - run: ./gradlew createVersionFile - - # Runs a single command using the runners shell - - name: Compile and run tests on robot code - run: ./gradlew build