tests #228
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
# name: Run ZIO HTTP Code in CI and Make curl Request | |
# on: | |
# pull_request: | |
# branches: ["**"] | |
# push: | |
# branches: ["**"] | |
# tags: [v*] | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# JDK_JAVA_OPTIONS: "-Xms4G -Xmx8G -XX:+UseG1GC -Xss10M -XX:ReservedCodeCacheSize=1G -XX:NonProfiledCodeHeapSize=512m -Dfile.encoding=UTF-8" | |
# SBT_OPTS: "-Xms4G -Xmx8G -XX:+UseG1GC -Xss10M -XX:ReservedCodeCacheSize=1G -XX:NonProfiledCodeHeapSize=512m -Dfile.encoding=UTF-8" | |
# jobs: | |
# build: | |
# name: Build, Test, and Conformance | |
# strategy: | |
# matrix: | |
# os: [ubuntu-latest] | |
# scala: [2.12.19, 2.13.14, 3.3.3] | |
# java: [17, 21] # Fixed version notation | |
# runs-on: ${{ matrix.os }} | |
# timeout-minutes: 60 | |
# steps: | |
# - name: Checkout current branch | |
# uses: actions/checkout@v4 | |
# with: | |
# fetch-depth: 0 | |
# - name: Setup Java | |
# uses: actions/setup-java@v4 | |
# with: | |
# distribution: temurin | |
# java-version: ${{ matrix.java }} | |
# cache: sbt | |
# - name: Compile the code | |
# run: sbt clean compile | |
# # Step 4: Run the ZIO HTTP server from conformance/Server.scala | |
# - name: Run ZIO HTTP server | |
# run: | | |
# sbt "project zioHttpExample" "runMain example.HelloWorld" & | |
# sleep 10 | |
# - name: Make curl Request to ZIO HTTP Server | |
# run: | | |
# curl -v http://localhost:8080 # Check root route | |
# curl -v http://localhost:8080/json # Check root route |