Skip to content

Update kotlinx-coroutines monorepo to v1.10.1 #128

Update kotlinx-coroutines monorepo to v1.10.1

Update kotlinx-coroutines monorepo to v1.10.1 #128

Workflow file for this run

name: Develop
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: checkout
uses: actions/checkout@v4.2.2
- name: validation
uses: gradle/actions/wrapper-validation@v4.2.2
- name: set up JDK
uses: actions/setup-java@v4.6.0
with:
distribution: 'adopt'
java-version: 17
- name: Build
run: ./gradlew build installReleaseDist
- name: Start nginx
uses: nyurik/action-setup-nginx@v1.1
id: start_ngingx
with:
conf-file-text: |
user runner docker;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 8080;
server_name localhost;
location ~ ^(.*)\.kts(\?.*)?$ {
root html;
try_files \$1.server.kts =404;
include fastcgi_params;
fastcgi_pass unix:$RUNNER_TEMP/kss.sock;
}
}
}
- name: Create test config
run: |
echo "socket.address=$RUNNER_TEMP/kss.sock" >> kss.properties
cp .github/config/logback.xml kss.logback.xml
echo "logging.logback.configurationFile=kss.logback.xml" >> kss.properties
- name: Run tests on nginx
uses: BerniWittmann/background-server-action@v1.1.1
with:
start: ./scripting-host/build/install/scripting-host-release/bin/kss
wait-on: sleep 5
command: ./.github/scripts/test.sh "${{ steps.start_ngingx.outputs.html-dir }}"
- name: Test logfile not empty
run: |
if [ ! -f log.txt ]; then
echo "log.txt file doesn't exist"
exit 1
fi
if [ ! -s log.txt ]; then
echo 'log.txt file is empty'
exit 2
fi
- name: Print nginx error logs
if: ${{ failure() }}
run: cat "${{ steps.start_ngingx.outputs.error-log }}"
- name: Print nginx access logs
if: ${{ failure() }}
run: cat "${{ steps.start_ngingx.outputs.access-log }}"
- name: Print kss process logs
if: ${{ failure() }}
run: cat log.txt