Skip to content

Commit

Permalink
Merge pull request #484 from ckipp01/setupJava
Browse files Browse the repository at this point in the history
  • Loading branch information
olafurpg authored Aug 16, 2022
2 parents f7fad9e + ed16cb2 commit 5f274f3
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 14 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ jobs:
java: [8, 17]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
cache: 'sbt'
java-version: ${{ matrix.java }}
- uses: actions/setup-go@v2
with:
Expand All @@ -41,5 +43,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v13
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
cache: 'sbt'
- run: sbt checkAll
6 changes: 5 additions & 1 deletion .github/workflows/mdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v13
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 8
cache: 'sbt'
- run: sbt docs/docusaurusPublishGhpages
env:
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}
6 changes: 5 additions & 1 deletion .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v13
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 8
cache: 'sbt'
- uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v13
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 8
cache: 'sbt'
- name: Publish ${{ github.ref }}
run: sbt ci-release
env:
Expand Down
24 changes: 15 additions & 9 deletions .github/workflows/sourcegraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,30 @@ on:
push:
branches:
- main
- olafurpg/lets-go
pull_request:

pull_request:

jobs:
scip:
runs-on: ubuntu-latest
name: "Upload SCIP"
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v13
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 8
cache: 'sbt'

- uses: actions/setup-go@v2
with:
go-version: "1.15.6"

- name: Install src
run: yarn global add @sourcegraph/src

- name: sbt sourcegraphUpload
run: |
mkdir -p bin
curl -L https://sourcegraph.com/.api/src-cli/src_linux_amd64 -o bin/src
chmod +x bin/src
export PATH="$PATH:$PWD/bin"
sbt sourcegraphUpload
run: sbt sourcegraphUpload

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5f274f3

Please sign in to comment.