Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
  • Loading branch information
varshith257 committed Sep 23, 2024
1 parent e40358d commit 7db6966
Showing 1 changed file with 52 additions and 52 deletions.
104 changes: 52 additions & 52 deletions .github/workflows/test.yml
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

0 comments on commit 7db6966

Please sign in to comment.