Skip to content

Update actions, documentation templates and configuration files to v0.17.0 #918

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
35 changes: 34 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,25 @@ on:
push:
branches: [main]
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
USE_RUBY: ${{ vars.USE_RUBY || 'false' }}
USE_YQ: ${{ vars.USE_YQ || 'false' }}
USE_CACHE: ${{ vars.USE_CACHE || 'false' }}
CACHE_FOLDER: ${{ vars.CACHE_FOLDER || '.cache' }}

jobs:
test:
if: "!contains(github.event.head_commit.message, 'skip ci')"
if: ${{!contains(github.event.head_commit.message, 'skip ci') && !github.event.pull_request.draft}}
runs-on: ubuntu-latest
steps:
- name: Checkout project (pull-request)
Expand All @@ -28,10 +43,12 @@ jobs:
with:
java-version: [email protected]
- name: Setup Ruby
if: ${{ env.USE_RUBY == 'true' }}
uses: ruby/setup-ruby@v1
with:
ruby-version: .ruby-version
- name: Setup yq
if: ${{ env.USE_YQ == 'true' }}
run: sudo snap install yq
- name: Run pre-conditions
run: test -f .github/actions.yml && eval "$(yq e '.pre.ci // "true"' .github/actions.yml)" || true
Expand All @@ -42,10 +59,26 @@ jobs:
uses: stefanzweifel/[email protected]
with:
commit_message: Run formatter/linter
- name: Restore cache
id: ci-cache-restore
if: ${{ env.USE_CACHE == 'true' }}
uses: actions/cache/restore@v3
with:
path: |
${{ env.CACHE_FOLDER }}
key: ci-cache-key
- name: Run checks
run: sbt ci-test
env:
GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }}
- name: Save cache
id: ci-cache-save
if: ${{ env.USE_CACHE == 'true' }}
uses: actions/cache/save@v3
with:
path: |
${{ env.CACHE_FOLDER }}
key: ${{ steps.ci-cache-restore.outputs.cache-primary-key }}
- name: Run post-conditions
run: test -f .github/actions.yml && eval "$(yq e '.post.ci // "true"' .github/actions.yml)" || true
- name: Automerge Scala Steward PRs
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
types: [published]
repository_dispatch:
types: [docs]
workflow_dispatch:

jobs:
documentation:
Expand All @@ -31,10 +30,6 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: .ruby-version
- name: Setup faraday
run: |
gem install faraday -v 2.8.1
gem install faraday-net_http -v 3.0.2
- name: Setup github-changelog-generator
run: gem install github_changelog_generator -v 1.15.0
- name: Setup yq
Expand Down
17 changes: 16 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,16 @@ project/plugins/project/
.bloop/
.metals/
metals.sbt

### Scala-CLI ###

.scala-build/

### Mill ###

# Techinically a duplicate of the IDEA section.
out/

### Vim ###

# Swap
Expand Down Expand Up @@ -74,6 +82,13 @@ tags
!.vscode/launch.json
!.vscode/extensions.json

# Direnv
### Direnv ###

.direnv
.envrc

### JavaScript / NPM / Yarn / Bundlers ###

node_modules
.parcel-cache
dist
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.2
2.7.2
Loading