Skip to content

Commit

Permalink
Update CI actions and docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
sciencewhiz committed Dec 16, 2023
1 parent b07b12e commit 17ed96c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions source/docs/software/advanced-gradlerio/code-formatting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Necessary ``build.gradle`` changes are required to get Spotless functional. In t
plugins {
id "java"
id "edu.wpi.first.GradleRIO" version "2022.1.1"
id 'com.diffplug.spotless' version '6.12.0'
id "edu.wpi.first.GradleRIO" version "2024.1.1"
id 'com.diffplug.spotless' version '6.20.0'
}
Then ensure you add a required ``spotless {}`` block to correctly configure spotless. This can just get placed at the end of your ``build.gradle``.
Expand Down Expand Up @@ -86,10 +86,10 @@ In addition to formatting code, Spotless can also ensure the code is correctly f
# 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@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
Expand Down Expand Up @@ -210,6 +210,6 @@ An example styleguide is shown below:

You can turn this into a :doc:`CI check <robot-code-ci>` by running ``git --no-pager diff --exit-code HEAD``, as shown in the example GitHub Actions workflow below:

.. rli:: https://raw.githubusercontent.com/wpilibsuite/allwpilib/v2024.1.1-beta-3/.github/workflows/lint-format.yml
.. rli:: https://raw.githubusercontent.com/wpilibsuite/allwpilib/v2024.1.1-beta-4/.github/workflows/lint-format.yml
:language: yaml
:lines: 1-5, 12-34
8 changes: 4 additions & 4 deletions source/docs/software/advanced-gradlerio/robot-code-ci.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ You will now be greeted with a text editor. Replace all the default text with th
runs-on: ubuntu-latest
# This grabs the WPILib docker container
container: wpilib/roborio-cross-ubuntu:2023-22.04
container: wpilib/roborio-cross-ubuntu:2024-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
- uses: actions/checkout@v4
# Declares the repository safe and not under dubious ownership.
- name: Add repository to git safe directories
Expand Down Expand Up @@ -94,7 +94,7 @@ This block of code dictates when the Action will run. Currently, the action will
runs-on: ubuntu-latest
# This grabs the WPILib docker container
container: wpilib/roborio-cross-ubuntu:2023-22.04
container: wpilib/roborio-cross-ubuntu:2024-22.04
Each Action workflow is made of a one or more jobs that run either sequentially (one after another) or in parallel (at the same time). In our workflow, there is only one "build" job.

Expand All @@ -105,7 +105,7 @@ We specify that we want the job to run on an Ubuntu virtual machine and in a vir
# 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
- uses: actions/checkout@v4
# Declares the repository safe and not under dubious ownership.
- name: Add repository to git safe directories
Expand Down

0 comments on commit 17ed96c

Please sign in to comment.