diff --git a/formatting.xml b/.github/workflows/checkstyle.xml similarity index 99% rename from formatting.xml rename to .github/workflows/checkstyle.xml index 1fffe669..97b66240 100644 --- a/formatting.xml +++ b/.github/workflows/checkstyle.xml @@ -1,3 +1,4 @@ + @@ -333,4 +334,4 @@ - \ No newline at end of file + diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index ce3ee5a6..eb467409 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -4,13 +4,9 @@ name: Build # events but only for the main branch. on: push: - branches: - - main - - competition-working + branches: [ main , competition-working ] pull_request: - branches: - - main - - competition-working + branches: [ main , competition-working ] # 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" @@ -21,14 +17,14 @@ jobs: container: wpilib/roborio-cross-ubuntu:2025-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@v4 - # 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 - # Runs a single command using the runners shell - - name: Compile and run tests on robot code - run: ./gradlew build + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v4 + # 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 + # Runs a single command using the runners shell + - name: Compile and run tests on robot code + run: ./gradlew build diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..8f47a935 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,15 @@ +name: Linter +on: workflow_call +jobs: + checkstyle: + name: runner / checkstyle + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: dbelyaev/action-checkstyle@v2 + with: + github_token: ${{ secrets.github_token }} + reporter: github-pr-check + level: error + fail_level: error + checkstyle_config: google_checks.xml diff --git a/.github/workflows/validations.yml b/.github/workflows/validations.yml deleted file mode 100644 index 06523e94..00000000 --- a/.github/workflows/validations.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Validations -on: - - pull_request - - workflow_dispatch -jobs: - checkstyle: - name: Checkstyle - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v6 - - uses: dbelyaev/action-checkstyle@v3 - with: - github_token: ${{ secrets.github_token }} - reporter: github-pr-check - pr-title: - name: Pull Request Title - runs-on: ubuntu-latest - steps: - - uses: ytanikin/pr-conventional-commits@1.5.1 - with: - task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]' \ No newline at end of file diff --git a/.java-version b/.java-version deleted file mode 100644 index 98d9bcb7..00000000 --- a/.java-version +++ /dev/null @@ -1 +0,0 @@ -17