Skip to content

Commit

Permalink
Consistent CI paths. (#193)
Browse files Browse the repository at this point in the history
Fix inconsistent paths in the CI workflows - incidentally fixing
codecov!
  • Loading branch information
PapyChacal authored Feb 5, 2025
1 parent 877187b commit d18f613
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@ jobs:
steps:
- name: Checkout Scair
uses: actions/checkout@v4
with:
path: scair

# Restore SBT's incremental build cache
- name: Restore Incremental Build Cache
uses: actions/cache@v4
with:
# All the target/ subdirectories are cached
path: "scair/**/target"
path: "**/target"
# Caches are immutable; we need to uniquely identify them to always push the recent ones
# There is an LRU-like policy in place on GitHub's side, capped at 10GB caches per repo
key: sbt-incremental-docs-${{ github.run_id }}-${{ github.run_attempt }}
Expand All @@ -41,14 +39,13 @@ jobs:
apps: scala:3.3.1 sbt

- name: Generate documentation
run: |
cd scair
sbt unidoc
run: sbt unidoc

- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action
with:
path: scair/target/scala-3.3.4/unidoc/
path: target/scala-3.3.4/unidoc/

deploy:
name: "Deploy to GitHub Pages"
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@ jobs:
steps:
- name: Checkout Scair
uses: actions/checkout@v4
with:
path: scair

# Restore SBT's incremental build cache
- name: Cache Incremental Build
uses: actions/cache@v4
with:
# All the target/ subdirectories are cached
path: "scair/**/target"
path: "**/target"
# Caches are immutable; we need to uniquely identify them to always push the recent ones
# There is an LRU-like policy in place on GitHub's side, capped at 10GB caches per repo
key: sbt-incremental-format-${{ github.run_id }}-${{ github.run_attempt }}
Expand All @@ -47,6 +45,4 @@ jobs:

# Check if the code is formatted as expected
- name: Run format checks
run: |
cd scair
sbt formatCheckAll
run: sbt formatCheckAll
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
uses: actions/cache@v4
with:
# All the target/ subdirectories are cached
path: "scair/**/target"
path: "**/target"
# Caches are immutable; we need to uniquely identify them to always push the recent ones
# There is an LRU-like policy in place on GitHub's side, capped at 10GB caches per repo
key: sbt-incremental-tests-${{ github.run_id }}-${{ github.run_attempt }}
Expand Down

0 comments on commit d18f613

Please sign in to comment.