Skip to content
Open
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
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
description: 'The machine runner the workflow should run on'
default: macos-latest
required: false
secrets:
CODECOV_TOKEN:
required: true
workflow_dispatch:
inputs:
runner:
Expand All @@ -24,7 +27,7 @@ jobs:
- name: Clone Repo
uses: actions/checkout@v4

- name: Set up jdk@17
- name: Set up jdk@21
uses: actions/setup-java@v3
with:
distribution: 'corretto'
Expand All @@ -35,3 +38,9 @@ jobs:

- name: Execute Gradle build
run: ./gradlew build

- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
env:
token: ${{ secrets.CODECOV_TOKEN }}
slug: CharlieTap/cachemap
2 changes: 2 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ jobs:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
uses: ./.github/workflows/build.yml
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
runner: ${{ matrix.os }}