Use DocumentEncodeFn for DistinctOps #40
Workflow file for this run
This file contains 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
# This file was autogenerated using `zio-sbt-ci` plugin via `sbt ciGenerateGithubWorkflow` | |
# task and should be included in the git repository. Please do not edit it manually. | |
name: CI | |
env: | |
JDK_JAVA_OPTIONS: -XX:+PrintCommandLineFlags | |
'on': | |
workflow_dispatch: {} | |
release: | |
types: | |
- published | |
push: {} | |
pull_request: | |
branches-ignore: | |
- gh-pages | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v4.1.0 | |
with: | |
fetch-depth: '0' | |
- name: Install libuv | |
run: sudo apt-get update && sudo apt-get install -y libuv1-dev | |
- name: Setup Scala | |
uses: actions/setup-java@v3.13.0 | |
with: | |
distribution: corretto | |
java-version: '17' | |
check-latest: true | |
- name: Cache Dependencies | |
uses: coursier/cache-action@v6 | |
- name: Check all code compiles | |
run: sbt +Test/compile | |
- name: Check artifacts build process | |
run: sbt +publishLocal | |
# - name: Check website build process | |
# run: sbt docs/clean; sbt docs/buildWebsite | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
continue-on-error: false | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v4.1.0 | |
with: | |
fetch-depth: '0' | |
- name: Install libuv | |
run: sudo apt-get update && sudo apt-get install -y libuv1-dev | |
- name: Setup Scala | |
uses: actions/setup-java@v3.13.0 | |
with: | |
distribution: corretto | |
java-version: '17' | |
check-latest: true | |
- name: Cache Dependencies | |
uses: coursier/cache-action@v6 | |
- name: Lint | |
run: sbt lint | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
java: ['11', '17', '21'] | |
mongodb: ['5.0.2', '6.0.11', '7.0.1'] | |
continue-on-error: false | |
env: | |
MONGO_CI: true | |
MONGO_VERSION: ${{ matrix.mongodb }} | |
steps: | |
- name: Install libuv | |
run: sudo apt-get update && sudo apt-get install -y libuv1-dev | |
- name: Setup Scala | |
uses: actions/setup-java@v3.13.0 | |
with: | |
distribution: corretto | |
java-version: ${{ matrix.java }} | |
check-latest: true | |
- name: Cache Dependencies | |
uses: coursier/cache-action@v6 | |
- name: Git Checkout | |
uses: actions/checkout@v4.1.0 | |
with: | |
fetch-depth: '0' | |
- name: Start MongoDB | |
uses: supercharge/mongodb-github-action@v1.10.0 | |
with: | |
mongodb-version: ${{ matrix.mongodb }} | |
mongodb-replica-set: test-rs | |
- name: Test | |
run: sbt +test | |
ci: | |
name: ci | |
runs-on: ubuntu-latest | |
continue-on-error: false | |
needs: | |
- lint | |
- test | |
- build | |
steps: | |
- name: Report Successful CI | |
run: echo "ci passed" | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
continue-on-error: false | |
needs: [ci] | |
if: ${{ github.event_name != 'pull_request' }} | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v4.1.0 | |
with: | |
fetch-depth: '0' | |
- name: Install libuv | |
run: sudo apt-get update && sudo apt-get install -y libuv1-dev | |
- name: Setup Scala | |
uses: actions/setup-java@v3.13.0 | |
with: | |
distribution: corretto | |
java-version: '17' | |
check-latest: true | |
- name: Cache Dependencies | |
uses: coursier/cache-action@v6 | |
- 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 }} | |
# release-docs: | |
# name: Release Docs | |
# runs-on: ubuntu-latest | |
# continue-on-error: false | |
# needs: | |
# - release | |
# if: ${{ ((github.event_name == 'release') && (github.event.action == 'published')) || (github.event_name == 'workflow_dispatch') }} | |
# steps: | |
# - name: Git Checkout | |
# uses: actions/checkout@v4.1.0 | |
# with: | |
# fetch-depth: '0' | |
# - name: Install libuv | |
# run: sudo apt-get update && sudo apt-get install -y libuv1-dev | |
# - name: Setup Scala | |
# uses: actions/setup-java@v3.13.0 | |
# with: | |
# distribution: corretto | |
# java-version: '17' | |
# check-latest: true | |
# - name: Cache Dependencies | |
# uses: coursier/cache-action@v6 | |
# - name: Setup NodeJs | |
# uses: actions/setup-node@v3 | |
# with: | |
# node-version: 16.x | |
# registry-url: https://registry.npmjs.org | |
# - name: Publish Docs to NPM Registry | |
# run: sbt docs/publishToNpm | |
# env: | |
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |