Skip to content

Commit

Permalink
Add Github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
adpi2 committed Jun 6, 2024
1 parent df54464 commit bc7701a
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Continuous Integration
on:
push:
branches: [main]
pull_request:
paths:
- "src/**"
- "project/**"
- ".scalafmt.conf"
- ".github/**"
- "build.sbt"

concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
scalafmt:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: coursier/[email protected]
with:
apps: scalafmt
- run: scalafmt --test
test:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
jvm: 'adoptium:1.8.0-372'
- os: windows-latest
jvm: 'adoptium:1.11.0.19'
- os: macOS-latest
jvm: 'adoptium:1.17.0.7'
- os: ubuntu-latest
jvm: 'adoptium:1.20.0.1'
name: Unit Tests on ${{ matrix.os }} -- ${{ matrix.jvm }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: coursier/[email protected]
with:
jvm: ${{ matrix.jvm }}
apps: sbt
- name: Unit tests
run: sbt test
shell: bash
14 changes: 14 additions & 0 deletions .github/workflows/dependency-graph.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: sbt Dependency Graph
on:
push:
branches:
- main
jobs:
update-graph:
name: Update Dependency Graph
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: scalacenter/sbt-dependency-submission@v3
with:
configs-ignore: scala-doc-tool
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release
on:
push:
tags: ["*"]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: coursier/[email protected]
with:
apps: sbt
jvm: 'adopt:1.8'
- 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 }}

0 comments on commit bc7701a

Please sign in to comment.