Skip to content

Commit

Permalink
Update build and deps
Browse files Browse the repository at this point in the history
  • Loading branch information
pomadchin committed May 13, 2024
1 parent ce9296f commit fedd687
Show file tree
Hide file tree
Showing 79 changed files with 1,787 additions and 2,292 deletions.
104 changes: 0 additions & 104 deletions .circleci/config.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/ISSUE_TEMPLATE/release.md

This file was deleted.

25 changes: 0 additions & 25 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
22 changes: 22 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name-template: '$NEXT_MINOR_VERSION'
tag-template: 'v$NEXT_MINOR_VERSION'
categories:
- title: 'Added'
labels:
- 'feature'
- title: 'Changed'
labels:
- 'enhancement'
- 'dependency-update'
- title: 'Fixed'
labels:
- 'fix'
- 'bugfix'
- 'bug'
exclude-labels:
- 'skip-changelog'
- 'docs'
- 'build'
change-template: '- $TITLE [#$NUMBER](https://github.com/pomadchin/tagless-mid/pull/$NUMBER) (@$AUTHOR)'
template: |
$CHANGES
61 changes: 61 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: CI
on:
pull_request:
branches: ['**']
push:
branches: ['**']
tags: [v*]
jobs:
build:
name: Build and Test
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'geotrellis/maml'
strategy:
matrix:
os: [ubuntu-latest]
java: [11, 17]
distribution: [temurin]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: coursier/cache-action@v6
- uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}

- name: Check formatting
run: sbt scalafmtCheckAll

- name: Build project
run: sbt +test

publish:
name: Publish Artifacts
needs: [build]
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
strategy:
matrix:
os: [ubuntu-latest]
java: [11]
distribution: [temurin]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: coursier/cache-action@v6
- uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}

- name: Release
run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
if: ${{ env.SONATYPE_PASSWORD != '' && env.SONATYPE_USERNAME != '' }}
22 changes: 22 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release Drafter

on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
update_release_draft:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94 changes: 51 additions & 43 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,53 +1,61 @@
*.class
*.log
# Operating System Files

*.DS_Store
Thumbs.db

# Build Files

index.html
index.js
package.html
lib
site/
docs/_build/

project/.boot
project/boot
project/plugins/project
project/plugins/target
project/target
bin
target
.ensime
\#*#
*~
.#*
.lib
*.aux.xml
*.jar
*.crc
_SUCCESS

*.ivy
*.pyc
.project
build/
.gradle
cmake-build-debug

# Eclipse Project Files

.classpath
.cache
.project
.settings
.history
.idea
.DS_Store

# IntelliJ IDEA Files

*.iml
*.swp
*.swo
*.sublime-*
.vagrant
*.ipr
*.iws
*.idea

# Spring Bootstrap artifacts

dependency-reduced-pom.xml
README.html

lib
index.html
index.js
.ensime*
# Sublime files

nohup.out
*.sublime-workspace

site/
.metadata/
# VSCode files

.vscode
.history

# Metals

.metals
.bloop
.bloop
metals.sbt

# SBT

.bsp

# Test data files #

java/data

# Compiled libs #

java/*.dylib
java/*.so
java/*dll

*.log
14 changes: 13 additions & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
version=2.0.0-RC4
version=3.8.1
runner.dialect = scala3
align.openParenCallSite = true
align.openParenDefnSite = true
maxColumn = 150
continuationIndent.defnSite = 2
assumeStandardLibraryStripMargin = true
danglingParentheses.preset = true
rewrite.rules = [AvoidInfix, SortImports, RedundantParens, SortModifiers]
docstrings = JavaDoc
newlines.afterCurlyLambda = preserve
docstrings.style = Asterisk
docstrings.oneline = unfold
Loading

0 comments on commit fedd687

Please sign in to comment.