forked from zio/zio-http
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e40358d
commit 7db6966
Showing
1 changed file
with
52 additions
and
52 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,52 @@ | ||
# 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 | ||
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 |