Skip to content

Commit

Permalink
Merge pull request #752 from alexarchambault/publish-local-job
Browse files Browse the repository at this point in the history
Check that publishLocal works fine in tests
  • Loading branch information
alexarchambault authored Feb 24, 2021
2 parents 729f587 + 02f5bfa commit 85e500e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
25 changes: 24 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,33 @@ jobs:
- run: amm scripts/site.sc --publishLocal true
shell: bash

publishLocal:
runs-on: ubuntu-latest
steps:
- name: Don't convert LF to CRLF during checkout
if: runner.os == 'Windows'
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- uses: coursier/cache-action@v5
with:
extraFiles: "[\".github/scripts/*.sh\", \".github/workflows/ci.yml\", \"scripts/*.sh\", \"scripts/*.sc\", \"examples/*.ipynb\"]"
extraKey: publish-local
- uses: laughedelic/coursier-setup@v1
with:
jvm: 8
apps: sbt-launcher
- run: sbt +publishLocal
shell: bash

# job whose name doesn't change when we bump Scala versions, add OSes, …
# We require this job for auto-merge.
all-tests:
needs: [examples, test, website]
needs: [examples, test, website, publishLocal]
runs-on: ubuntu-latest
steps:
- run: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ final class ScalaInterpreterInspections(
val index = prefix.length + pos

val currentFile = new scala.reflect.internal.util.BatchSourceFile(
ammonite.interp.Compiler.makeFile(allCode.getBytes, name = "Current.sc"),
ammonite.compiler.Compiler.makeFile(allCode.getBytes, name = "Current.sc"),
allCode
)

Expand Down

0 comments on commit 85e500e

Please sign in to comment.