Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/exoego/cross-scala-versions

Extract crossScalaVersions for strategy matrix in GitHub Action
https://github.com/exoego/cross-scala-versions

Last synced: 5 days ago
JSON representation

Extract crossScalaVersions for strategy matrix in GitHub Action

Awesome Lists containing this project

README

        

# scala-cross-versions

A GitHub Actions to extract sbt's "crossScalaVersions" for matrix in other action.

## Example

```yaml
name: CI
on:
pull_request:
jobs:
get_scala_versions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: exoego/cross-scala-versions@master
id: run
outputs:
scala_versions: ${{ steps.run.outputs.scala_versions }}

build:
needs: get_scala_versions
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
scala: ${{ fromJson(needs.get_scala_versions.outputs.scala_versions) }}
steps:
- uses: actions/checkout@v2
- run: sbt ++${{ matrix.scala }} test
```