Skip to content

Commit

Permalink
Backport CI changes from comp bot repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahsnider committed Nov 27, 2024
1 parent 0b9979c commit 718de27
Showing 1 changed file with 61 additions and 66 deletions.
127 changes: 61 additions & 66 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,61 @@
name: CI

on: [push, pull_request]

jobs:
validation:
name: Validate Gradle wrappers
runs-on: ubuntu-latest
steps:
- name: Checkout Git repository
uses: actions/checkout@v4
- name: Validate Gradle wrappers
uses: gradle/actions/wrapper-validation@v4
assemble:
name: Assemble

runs-on: ubuntu-latest

steps:
- name: Checkout Git repository
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
cache: "gradle"
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Assemble project
run: ./gradlew assemble
style:
name: Check formatting

runs-on: ubuntu-latest

steps:
- name: Checkout Git repository
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
cache: "gradle"
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Check formatting
run: ./gradlew spotlessCheck
style-python:
name: Check Python formatting

runs-on: ubuntu-latest

steps:
- name: Checkout Git repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Install Python dependencies
run: pip install black
- name: Check formatting
run: black --check .
name: CI

on: [push, pull_request]

jobs:
validation:
name: Validate Gradle wrappers
runs-on: ubuntu-latest
steps:
- name: Checkout Git repository
uses: actions/checkout@v4
- name: Validate Gradle wrappers
uses: gradle/actions/wrapper-validation@v4
assemble:
name: Assemble

runs-on: ubuntu-latest

steps:
- name: Checkout Git repository
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
cache: "gradle"
- name: Assemble project
run: ./gradlew assemble
test:
name: Run tests

runs-on: ubuntu-latest

steps:
- name: Checkout Git repository
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
cache: "gradle"
- name: Run tests
run: ./gradlew test
style:
name: Check formatting

runs-on: ubuntu-latest

steps:
- name: Checkout Git repository
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
cache: "gradle"
- name: Check formatting
run: ./gradlew spotlessCheck

0 comments on commit 718de27

Please sign in to comment.