Skip to content
This repository has been archived by the owner on Feb 3, 2025. It is now read-only.

Use new workflows #16

Merged
merged 1 commit into from
Jan 23, 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
76 changes: 7 additions & 69 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: CI
name: Code Checks

# Controls when the action will run.
on:
Expand All @@ -9,73 +9,11 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
linting:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3 # v2 minimum required
- name: Run check style
uses: nikitasavinov/checkstyle-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: 'github-check'
tool_name: 'testtool'
fail_on_error: true
filter_mode: nofilter
level: error
checkstyle_config: checks.xml
checkstyle_version: '9.2.1'
spell_check:
name: Spell Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3 # v2 minimum required
- name: Run Spell Check
uses: codespell-project/actions-codespell@master
with:
check_filenames: true
merge_conflict_job:
runs-on: ubuntu-latest
name: Find merge conflicts
steps:
# Checkout the source code so there are some files to look at.
- uses: actions/checkout@v3
# Run the actual merge conflict finder
- name: Merge Conflict finder
uses: olivernybroe/[email protected]
javadoc:
name: Test Javadocs Generation
# The type of runner that the job will run on
runs-on: ubuntu-22.04
# This grabs the WPILib docker container
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
# Grant execute permission for gradlew
- name: Grant execute permission for gradlew
run: chmod +x gradlew
# Runs a single command using the runners shell
- name: Create Javadocs
run: ./gradlew javadoc
build:
name: Build
# The type of runner that the job will run on
runs-on: ubuntu-22.04
# 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
# 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
code-checks:
uses: Frc5572/Workflows/.github/workflows/frc-checks.yml@main
51 changes: 0 additions & 51 deletions .github/workflows/pages.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/update-vendors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This is a basic workflow to help you get started with Actions

name: Vendor Dep Updates

# Controls when the action will run.
on:
schedule:
- cron: "0 7,19 * * *" # This is in UTC time which makes the actual run 1AM and 1PM CST
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
vendor-updates:
uses: Frc5572/Workflows/.github/workflows/update-dependencies.yml@main
secrets: inherit
Loading