Skip to content

Starting fixing up warnings in linter.yml generated by super-linter #10

Starting fixing up warnings in linter.yml generated by super-linter

Starting fixing up warnings in linter.yml generated by super-linter #10

Workflow file for this run

# Gradle workflow to build the current project and generate a dependency graph for Dependabot Alerts.
name: Gradle Dependencies and Build
on:
push:
branches: [ "workflow-testing" ] # Change to "main" when merged
pull_request:
branches: [ "workflow-testing" ] # Change to "main" when merged
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
# Set up Java 17 JDK since the WPILib provided one isn't installed on this runner
# This will most likely change for a self-hosted runner
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: Setup Gradle
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
- name: Build with Gradle Wrapper
run: ./gradlew build
dependency-submission:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
# Set up Java 17 JDK since the WPILib provided one isn't installed on this runner
# This will most likely change for a self-hosted runner
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
# Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
# See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0