Skip to content

Update sbt-izumi to 0.0.102 #390

Update sbt-izumi to 0.0.102

Update sbt-izumi to 0.0.102 #390

Workflow file for this run

name: Build
on:
workflow_dispatch:
inputs: {}
push:
branches: [ "develop" ]
tags: [ "v**" ]
pull_request:
branches: [ "develop" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '11' ]
scala: [ '2.12', '2.13', '3.2' ]
steps:
- uses: 7mind/github-env@main
with:
java-version: ${{ matrix.java }}
# - uses: actions/setup-go@v5
# with:
# go-version: '1.21.4' # The Go version to download (if necessary) and use.
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.x
- name: Build and Test
run: |
bash sbtgen.sc --js
bash .build.sh ${{ matrix.scala }} coverage
- uses: codecov/codecov-action@v3
if: needs.checksecret.outputs.HAVE_SECRETS == 'true'
with:
token: ${{ secrets.TOKEN_CODECOV }} # not required for public repos but works unreliable without it
verbose: true # optional (default = false)
fail_ci_if_error: true
files: cobertura.xml
# TODO: do we need scoverage.xml? If so files: may be just omitted
# files: cobertura.xml,scoverage.xml
# flags: unittests
checksecret:
runs-on: ubuntu-latest
outputs:
HAVE_SECRETS: ${{ steps.checksecret_job.outputs.HAVE_SECRETS }}
steps:
- id: checksecret_job
env:
OPENSSL_IV: ${{ secrets.OPENSSL_IV }}
OPENSSL_KEY: ${{ secrets.OPENSSL_KEY }}
run: |
echo "HAVE_SECRETS=${{ env.OPENSSL_IV != '' && env.OPENSSL_KEY != '' }}" >> $GITHUB_OUTPUT
publish-alien:
runs-on: ubuntu-latest
needs: [ 'checksecret' ]
if: needs.checksecret.outputs.HAVE_SECRETS == 'true'
steps:
- uses: 7mind/github-env@main
with:
java-version: 11
- name: Publish alien artifacts
env:
OPENSSL_IV: ${{ secrets.OPENSSL_IV }}
OPENSSL_KEY: ${{ secrets.OPENSSL_KEY }}
TOKEN_NUGET: ${{ secrets.TOKEN_NUGET }}
TOKEN_NPM: ${{ secrets.TOKEN_NPM }}
run: |
bash .build.sh 2.12 secrets publishIDL
publish-artifacts:
runs-on: ubuntu-latest
needs: [ 'build', 'checksecret' ]
if: needs.checksecret.outputs.HAVE_SECRETS == 'true'
strategy:
matrix:
java: [ '11' ]
scala: [ '2.12', '2.13', '3.2' ]
steps:
- uses: 7mind/github-env@main
with:
java-version: ${{ matrix.java }}
- name: Build and Publish to Sonatype
env:
OPENSSL_IV: ${{ secrets.OPENSSL_IV }}
OPENSSL_KEY: ${{ secrets.OPENSSL_KEY }}
run: |
bash sbtgen.sc --js
bash .build.sh ${{ matrix.scala }} secrets publishScala
all-good:
if: always()
runs-on: ubuntu-latest
needs: [ 'build' ]
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}