Skip to content

Commit

Permalink
Use new Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
legoguy1000 committed Jan 16, 2025
1 parent 0eb883a commit 948c5df
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 118 deletions.
70 changes: 3 additions & 67 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 @@ -11,69 +11,5 @@ on:

# 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: dbelyaev/action-checkstyle@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: 'github-check'
fail_on_error: true
filter_mode: nofilter
level: error
checkstyle_config: checks.xml
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.

15 changes: 15 additions & 0 deletions .github/workflows/update-vendors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 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

0 comments on commit 948c5df

Please sign in to comment.