Skip to content

Run Gatling And Java CI #14

Run Gatling And Java CI

Run Gatling And Java CI #14

Workflow file for this run

name: Run Gatling And Java CI
on:
workflow_run:
workflows: ["Native CI"]
branches: [main]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
java: [23]
steps:
- uses: actions/checkout@v2
- uses: graalvm/setup-graalvm@v1
with:
version: 'latest'
java-version: ${{ matrix.java }}
github-token: ${{ secrets.GITHUB_TOKEN }}
distribution: 'graalvm'
native-image-job-reports: 'true'
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
cache: 'maven'
distribution: 'temurin'
- name: Run jars and get test results
run: ./runGatling.sh
- name: Commit the test result
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
set -x
DATE=$(date +"%Y-%m-%d")
YEAR=$(date +"%Y")
git config --global user.email "[email protected]"
git config --global user.name "ozkanpakdil"
rm -rf ozkanpakdil.github.io
rm -rf page
git clone https://${{ secrets.TOKEN_GIT }}@github.com/ozkanpakdil/ozkanpakdil.github.io.git page
git config pull.rebase true
mkdir -p page/my_collections/_microservicetests/$YEAR/
mv test-result.md page/my_collections/_microservicetests/$YEAR/$DATE-microservice-framework-test-${{ matrix.java }}.markdown
cd page/my_collections/_microservicetests/$YEAR
git add $DATE-microservice-framework-test-${{ matrix.java }}.markdown
# ls -1tr | head -n -10 | xargs -d '\n' git rm -f --
git commit -m "Automatic publish from micro frameworks test"
git push
cd ../../../../
rm -rf page