Skip to content

Commit

Permalink
First public release
Browse files Browse the repository at this point in the history
Co-authored-by: damienleflohic <86928690+dleflohic@users.noreply.github.com>
Co-authored-by: Aurélien Richez <aurelien.richez@iohk.io>
Co-authored-by: Nikolaos Dymitriadis <nikolaos.dymitriadis@iohk.io>
  • Loading branch information
4 people committed Nov 26, 2022
0 parents commit 034987a
Show file tree
Hide file tree
Showing 141 changed files with 9,348 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/release-drafter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
categories:
- title: 'Dependency updates'
labels:
- 'dependency'
template: |
## What’s Changed
$CHANGES
72 changes: 72 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: CI

on:
push:
branches: [ '**' ]
tags: [ '**' ]
pull_request:
branches: [ '**' ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: coursier/cache-action@v5
- uses: coursier/setup-action@v1.1.2
with:
jvm: adopt:11
- name: Check format
run: ./millw __.checkFormat
- name: Compile all
run: ./millw __.compile
- name: Scalafix check
run: ./millw __.fix --check
- name: Run tests
run: ./millw __.test

- name: Setup GPG secrets for publish
if: github.event_name != 'pull_request' && github.event_name == 'push' && ((startsWith(github.ref, 'refs/tags/')) || github.ref == 'refs/heads/main')
run: |
gpg --version
cat <(echo "${{ secrets.GPG_SECRET_KEY }}") | base64 --decode | gpg --batch --import
- name: Publish to Nexus Repository
if: github.event_name != 'pull_request' && github.event_name == 'push' && ((startsWith(github.ref, 'refs/tags/')) || github.ref == 'refs/heads/main')
run: |
./millw mill.scalalib.PublishModule/publishAll \
__.publishArtifacts \
--sonatypeCreds '${{ secrets.SONATYPE_CREDS }}' \
--stagingRelease false \
--sonatypeUri "https://nexus.iog.solutions/repository/maven-release/" \
--sonatypeSnapshotUri "https://nexus.iog.solutions/repository/maven-snapshot/" \
--gpgArgs --batch,--yes,-a,-b
publish-notes:
name: Publish release notes
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/'))
needs: [ build ]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Extract version from commit message
run: |
version=${GITHUB_REF#refs/*/}
echo "VERSION=$version" >> $GITHUB_ENV
env:
COMMIT_MSG: ${{ github.event.head_commit.message }}
- name: Publish release notes
uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter.yaml
publish: true
name: "v${{ env.VERSION }}"
tag: "${{ env.VERSION }}"
version: "v${{ env.VERSION }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17 changes: 17 additions & 0 deletions .github/workflows/dependency-graph.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: github-dependency-graph

on:
push:
branches:
- main

jobs:
submit-dependency-graph:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: coursier/cache-action@v6
- uses: coursier/setup-action@v1.1.2
with:
jvm: adopt:11
- uses: ckipp01/mill-dependency-submission@v1
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
out
.idea
.vscode
.metals
*.iml

mill-bsp.json

project
target
1 change: 1 addition & 0 deletions .mill-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.10.5
34 changes: 34 additions & 0 deletions .scalafix.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
rules = [
ExplicitResultTypes
NoAutoTupling
NoValInForComprehension
OrganizeImports
ProcedureSyntax
RemoveUnused
DisableSyntax
LeakingImplicitClassVal
]

OrganizeImports {
# Align with IntelliJ IDEA so that they don't fight each other
groupedImports = Merge
}

RemoveUnused {
imports = false // handled by OrganizeImports
// removing unused private variables can break compilation if the variable is written
// to but never read). It also often is a symptom of a bug so a manual intervention is preferable
privates = false
locals = false
}

DisableSyntax.noVars = true
DisableSyntax.noThrows = false
DisableSyntax.noNulls = true
DisableSyntax.noReturns = true
DisableSyntax.noAsInstanceOf = false
DisableSyntax.noIsInstanceOf = true
DisableSyntax.noXml = true
DisableSyntax.noFinalVal = true
DisableSyntax.noFinalize = true
DisableSyntax.noValPatterns = true
3 changes: 3 additions & 0 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version = 3.5.3
maxColumn = 140
runner.dialect = scala213
73 changes: 73 additions & 0 deletions CODE-OF-CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
education, socio-economic status, nationality, personal appearance, race,
religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at {{ email }}. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at <https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>

[homepage]: https://www.contributor-covenant.org
Loading

0 comments on commit 034987a

Please sign in to comment.