Skip to content

Commit

Permalink
🧪 Add tests for github action
Browse files Browse the repository at this point in the history
  • Loading branch information
polRk committed Oct 23, 2024
1 parent 1cf739d commit aa3df5c
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ insert_final_newline = true
indent_style = tab
tab_width = 4
max_line_length = 120

[*.yml]
indent_style = space
indent_size = 4
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily

- package-ecosystem: npm
directory: /
schedule:
interval: daily
32 changes: 32 additions & 0 deletions .github/workflows/ydb-slo-action-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: ydb-slo-action-test
on:
workflow_dispatch:
pull_request_target:
types: [opened, synchronize, reopened]

jobs:
test-ydb-slo-action:
runs-on: ubuntu-latest
name: YDB SLO Action Test
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout code from PR
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Inititialize YDB SLO Test
uses: ydb-platform/ydb-slo-action/init

- name: Run chaos testing
run: echo 'CHAOS 🙈🙈🙈'

- name: Run user workload
run: sleep 60

- name: Report YDB SLO Test results
uses: ydb-platform/ydb-slo-action/report

0 comments on commit aa3df5c

Please sign in to comment.