Merge pull request #199 from scala-steward/update/sbt-scalajs-1.20.1 #375
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| env: | |
| JDK_JAVA_OPTIONS: -XX:+PrintCommandLineFlags | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| release: | |
| types: [ published ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout current branch | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: 'true' | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| check-latest: true | |
| cache: 'sbt' | |
| - uses: sbt/setup-sbt@v1 | |
| - name: Run tests | |
| run: sbt lint test | |
| env: | |
| # see https://stackoverflow.com/questions/69394632/webpack-build-failing-with-err-ossl-evp-unsupported | |
| NODE_OPTIONS: "--openssl-legacy-provider" | |
| publish: | |
| runs-on: ubuntu-latest | |
| needs: [ci] | |
| if: github.event_name == 'release' | |
| steps: | |
| - name: Checkout current branch | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| check-latest: true | |
| cache: 'sbt' | |
| - uses: sbt/setup-sbt@v1 | |
| - name: Release | |
| 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 }} |