Skip to content

make reactive state variables lazy #878

make reactive state variables lazy

make reactive state variables lazy #878

Workflow file for this run

name: Test
on:
push:
branches: [master]
tags: [ v* ]
pull_request:
workflow_dispatch:
env:
SBT_OPTS: "-Xms1G -Xmx4G" # Default runner has 7G of RAM. https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
jobs:
build:
strategy:
matrix:
scalaVersion: ["2.13.11", "3.3.1"]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: coursier/cache-action@v6
- uses: olafurpg/setup-scala@v14
- name: Test
env:
NODE_OPTIONS: "--openssl-legacy-provider"
run: sbt "++${{matrix.scalaVersion}} -v test"
# - name: Debug over SSH (tmate)
# # if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3
# with:
# limit-access-to-actor: true
publish:
needs: [build]
# if this is not a pull request, run only on master or tags pushes.
# if this is a pull request, run only when 'publish' label is set
if: (github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))) ||
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'publish'))
strategy:
matrix:
os: [ubuntu-22.04]
scala: [2.13.11]
java: [adopt@1.8]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- uses: olafurpg/setup-scala@v14
with:
java-version: 8
- name: Cache SBT
uses: coursier/cache-action@v6
- uses: olafurpg/setup-gpg@v3
- name: Publish
run: sbt version "git status" ci-release "git status"
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}