Skip to content

Commit

Permalink
Updated actions and badges
Browse files Browse the repository at this point in the history
  • Loading branch information
Sol-H committed Dec 2, 2024
1 parent 3ca0f34 commit 5e11d24
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 4 deletions.
42 changes: 40 additions & 2 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,60 @@ on:
- main

jobs:
build:
day1:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
java-package: jdk
architecture: x64
check-latest: false
overwrite-settings: true
job-status: success

- name: Build with Gradle
run: ./gradlew build

- name: Run Day 1 Tests
run: ./gradlew test --tests "*Day01Test*"

- name: JUnit Report Action
uses: mikepenz/action-junit-report@v5
with:
report_paths: '**/build/test-results/test/*.xml'

day2:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
java-package: jdk
architecture: x64
check-latest: false
overwrite-settings: true
job-status: success

- name: Build with Gradle
run: ./gradlew build

- name: Run Day 2 Tests
run: ./gradlew test --tests "*Day02Test*"

- name: JUnit Report Action
uses: mikepenz/action-junit-report@v5
with:
report_paths: '**/build/test-results/test/*.xml'
report_paths: '**/build/test-results/test/*.xml'

# Add more jobs for additional days as needed
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Advent of Code in Kotlin

This project contains solutions for the Advent of Code challenges implemented in Kotlin.
The project uses Gradle for build automation and JUnit for testing.
This project contains solutions for the Advent of Code challenges implemented in Kotlin.
The project uses Gradle for build automation and JUnit for testing.

## Tests
- ![Day 1 Tests](https://github.com/Sol-H/AOC24-Kotlin/actions/workflows/actions.yml/badge.svg?branch=main&job=day1) **Day 1**
- ![Day 2 Tests](https://github.com/Sol-H/AOC24-Kotlin/actions/workflows/actions.yml/badge.svg?branch=main&job=day2) **Day 2**

0 comments on commit 5e11d24

Please sign in to comment.