Skip to content

Commit

Permalink
feat: add steward and update CI (#11)
Browse files Browse the repository at this point in the history
Co-authored-by: m.rogozhnikov <[email protected]>
  • Loading branch information
Maksimall89 and m.rogozhnikov authored Feb 28, 2022
1 parent a98188b commit 2f46ace
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 37 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Continuous Integration

on:
pull_request:
branches: ['**']
push:
branches: ['**']
tags: [v*]

jobs:
test:
name: Test Release
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Setup Scala
uses: olafurpg/setup-scala@v13
with:
java-version: [email protected]

- name: Test Release
run: sbt clean scalafmtCheckAll scalafmtSbtCheck compile test

publish:
name: Publish Release
needs: [test]
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Setup Scala
uses: olafurpg/setup-scala@v13
with:
java-version: [email protected]

- name: Setup GPG
uses: olafurpg/setup-gpg@v3

- name: Publish Release
run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
14 changes: 14 additions & 0 deletions .github/workflows/scala-steward.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Launch Scala Steward

on:
workflow_dispatch:
pull_request:
push:

jobs:
scala-steward:
name: Launch Scala Steward
runs-on: ubuntu-20.04
steps:
- name: Launch Scala Steward
uses: scala-steward-org/scala-steward-action@v2
34 changes: 0 additions & 34 deletions .github/workflows/scala.yml

This file was deleted.

20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
# gatling-jdbc-plugin
![Build](https://github.com/TinkoffCreditSystems/gatling-jdbc-plugin/workflows/Build/badge.svg) [![Maven Central](https://img.shields.io/maven-central/v/ru.tinkoff/gatling-jdbc-plugin_2.13.svg?color=success)](https://search.maven.org/search?q=ru.tinkoff.gatling-jdbc-plugin)
# Gatling JDBC Plugin
![Build](https://github.com/TinkoffCreditSystems/gatling-jdbc-plugin/workflows/Build/badge.svg) [![Maven Central](https://img.shields.io/maven-central/v/ru.tinkoff/gatling-jdbc-plugin_2.13.svg?color=success)](https://search.maven.org/search?q=ru.tinkoff.gatling-jdbc-plugin) [![Scala Steward badge](https://img.shields.io/badge/Scala_Steward-helping-blue.svg?style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAMAAAARSr4IAAAAVFBMVEUAAACHjojlOy5NWlrKzcYRKjGFjIbp293YycuLa3pYY2LSqql4f3pCUFTgSjNodYRmcXUsPD/NTTbjRS+2jomhgnzNc223cGvZS0HaSD0XLjbaSjElhIr+AAAAAXRSTlMAQObYZgAAAHlJREFUCNdNyosOwyAIhWHAQS1Vt7a77/3fcxxdmv0xwmckutAR1nkm4ggbyEcg/wWmlGLDAA3oL50xi6fk5ffZ3E2E3QfZDCcCN2YtbEWZt+Drc6u6rlqv7Uk0LdKqqr5rk2UCRXOk0vmQKGfc94nOJyQjouF9H/wCc9gECEYfONoAAAAASUVORK5CYII=)](https://scala-steward.org)

Simple gatling plugin for JDBC
Plugin for support performance testing with JDBC in Gatling(3.7.x)

# Usage

## Getting Started
Plugin is currently available for Scala 2.13.

You may add plugin as dependency in project with your tests. Write this to your build.sbt:

``` scala
libraryDependencies += "ru.tinkoff" %% "gatling-jdbc-plugin" % <version> % Test
```

## Example Scenarios
Examples [here](https://github.com/Tinkoff/gatling-jdbc-plugin/tree/master/src/test/scala/ru/tinkoff/load/jdbc/test)

0 comments on commit 2f46ace

Please sign in to comment.