Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Set of github actions workflows used in the SoftwareMill github repositories

License

NotificationsYou must be signed in to change notification settings

softwaremill/github-actions-workflows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub ActionsReusable Workflows used inSoftwareMill projects.
If you use a workflow from this repository, please add its usage to the corresponding sectionList of repositories using this workflow in this document.

Architecture

  1. All Workflowshave to be locatedin the.github/worksflows path, otherwise GitHub Actions won't be able to use them.

  2. Actions and Workflows differ in GitHub Actions. This repository contains only Workflows.

    • Action is aself-contained piece of code written e.g. in JS.

      example-action-use:uses:actions/checkout@v4
    • Workflow is not acode, but a collection of correlated Actions contained in yaml files.

      example-workflow-use:uses:softwaremill/github-actions-workflows/.github/workflows/auto-merge.yml@main

Helpful links

List of reusable workflows

  1. Auto Merge
  2. Label
  3. Scala Steward
  4. Publish Release
  5. Mima
  6. Build Scala
  7. Test Report

This workflow is responsible for merging pull requests that are ready to be merged.

Usage

auto-merge:# only for PRs by softwaremill-ciif:github.event.pull_request.user.login == 'softwaremill-ci'needs:[ ci, mima, label ]uses:softwaremill/github-actions-workflows/.github/workflows/auto-merge.yml@mainsecrets:inherit

This workflow is responsible for labeling pull requests. It attaches label if there is exactly one file changed bysteward and this file belongs to a whitelist specified bylabeler.yml

Usage

label:# only for PRs by softwaremill-ciif:github.event.pull_request.user.login == 'softwaremill-ci'uses:softwaremill/github-actions-workflows/.github/workflows/label.yml@mainsecrets:inherit

This workflow is responsible for running Scala Steward.

Usage

name:Scala Steward# This workflow will launch at 00:00 every dayon:schedule:    -cron:'0 0 * * *'workflow_dispatch:permissions:contents:write# Required to checkout and push changespull-requests:write# Required to create PRs for dependency updatesjobs:scala-steward:uses:softwaremill/github-actions-workflows/.github/workflows/scala-steward.yml@mainsecrets:github-token:${{ secrets.SOFTWAREMILL_CI_PR_TOKEN }}with:java-version:'21'

List of input params

NameDescriptionRequiredDefaultExample
java-versionJava version used in the workflowNo'11''21'
java-optsJava options used in the workflowNo"""-Xmx3000M"

This workflow is responsible for publishing build artifacts and release notes of scala projects.It uses multiple secrets so clausesecrets: inherit has to be added to the workflow definition.

Usage

publish-release:uses:softwaremill/github-actions-workflows/.github/workflows/publish-release.yml@mainsecrets:inheritwith:java-version:'11'java-opts:"-Xmx3000M -Dsbt.task.timings=true"sttp-native:1

List of input params

NameDescriptionRequiredDefaultExample
java-versionJava version used in the workflowNo'11''21'
java-optsJava options used in the workflowNo"""-Xmx3000M -Dsbt.task.timings=true"
sttp-nativeFlag indicating if the sttp-native should be included in the aggregate projectsNo01

This workflow is responsible for running MiMa (binary compatibility checker).

Usage

mima:uses:softwaremill/github-actions-workflows/.github/workflows/mima.yml@mainwith:java-version:'11'java-opts:"-Xmx4G"

List of input params

NameDescriptionRequiredDefaultExample
java-versionJava version used in the workflowNo'11''21'
java-optsJava options used in the workflowNo"""-Xmx3000M -Dsbt.task.timings=true"

This workflow is responsible for building Scala projects.

Usage

build-scala:uses:softwaremill/github-actions-workflows/.github/workflows/build-scala.yml@mainwith:java-version:'11'java-opts:'-Xmx3000M -Dsbt.task.timings=true'sttp-native:1install-libidn11:true

List of input params

NameDescriptionRequiredDefaultExample
java-versionJava version used in the workflowNo'11''21'
java-optsJava options used in the workflowNo"""-Xmx3000M -Dsbt.task.timings=true"
sttp-nativeFlag indicating if the sttp-native should be included in the aggregate projectsNo01
install-libidn11Flag indicating if the libidn11 library should be installedNofalsetrue
install-libidn2Flag indicating if the libidn2 library should be installedNofalsetrue
compile-documentationFlag indicating if the project documentation should be compiledNofalsetrue

This workflow is responsible for generating test reports.

Usage

test-report:uses:softwaremill/github-actions-workflows/.github/workflows/test-report.yml@main

Remarks

  • All workflows using sbt with ubuntu 24.04 need to addsetup-sbt step because sbt was removed from the image asdescribedhere.

List of actions used in workflows

actionversiondescription
actions/checkoutv4checks-out your repository under $GITHUB_WORKSPACE
actions/setup-javav4downloads Java, configures runners, caches dependencies
actions/upload-artifactv4uploads artifacts from the workflow's workspace to be downloaded later
dorny/test-reporterv2generates test reports and uploads them as workflow artifacts.
pascalgn/automerge-actionv0.16.4automatically merges PRs withautomerge label
release-drafter/release-drafterv6drafts release notes based on merged pull requests
sbt/setup-sbtv1enablessbt runner
scala-steward-org/scala-steward-actionv2automates dependency updates for Scala projects
srvaroa/labelermastermanages labels for both Pull Requests and Issues

About

Set of github actions workflows used in the SoftwareMill github repositories

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp