CI #1036
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 | |
JVM_OPTS: -XX:+PrintCommandLineFlags | |
'on': | |
workflow_dispatch: {} | |
release: | |
types: | |
- published | |
push: {} | |
pull_request: {} | |
create: {} | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v3.3.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.10.0 | |
with: | |
distribution: temurin | |
java-version: '8' | |
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 | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
continue-on-error: false | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v3.3.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.10.0 | |
with: | |
distribution: temurin | |
java-version: '8' | |
check-latest: true | |
- name: Cache Dependencies | |
uses: coursier/cache-action@v6 | |
- name: Check if the site workflow is up to date | |
run: sbt ciCheckGithubWorkflow | |
- name: Lint | |
run: sbt lint | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
continue-on-error: false | |
strategy: | |
fail-fast: false | |
matrix: | |
java: | |
- '8' | |
scala-project: | |
- ++2.13.8 zio-quickstart-encode-decode-json | |
steps: | |
- name: Install libuv | |
run: sudo apt-get update && sudo apt-get install -y libuv1-dev | |
- name: Setup Scala | |
uses: actions/setup-java@v3.10.0 | |
with: | |
distribution: temurin | |
java-version: ${{ matrix.java }} | |
check-latest: true | |
- name: Cache Dependencies | |
uses: coursier/cache-action@v6 | |
- name: Git Checkout | |
uses: actions/checkout@v3.3.0 | |
with: | |
fetch-depth: '0' | |
- name: Test | |
run: sbt ${{ matrix.scala-project }}/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" |