From 7db6966e217ef96f442e7c86bc3f8cd307a90b75 Mon Sep 17 00:00:00 2001 From: Vamshi Maskuri <117595548+varshith257@users.noreply.github.com> Date: Mon, 23 Sep 2024 11:40:00 +0530 Subject: [PATCH] refine --- .github/workflows/test.yml | 104 ++++++++++++++++++------------------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6ac8212b1d..5a64907e0e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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