Skip to content

Commit

Permalink
🔐 Split actions on unprivileged and privileged
Browse files Browse the repository at this point in the history
  • Loading branch information
polRk committed Oct 23, 2024
1 parent 1517b3c commit d69acca
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 32 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ydb-slo-action-test-init.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: ydb-slo-action-test-init

on:
pull_request:
workflow_dispatch:

jobs:
test-ydb-slo-action-init:
name: Test YDB SLO Action Init
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

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

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

- name: Run user workload
run: sleep 60

- name: Upload YDB SLO Test results
uses: actions/upload-artifact@v4
with:
name: ydb-slo-action-test-results
path: '${{runner.temp}}'
24 changes: 24 additions & 0 deletions .github/workflows/ydb-slo-action-test-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: ydb-slo-action-test-report

on:
workflow_run:
workflows: ['ydb-slo-action-test-init']
types:
- completed

jobs:
test-ydb-slo-action:
runs-on: ubuntu-latest
name: Test YDB SLO Action Report
permissions:
contents: read
pull-requests: write
steps:
- name: Download YDB SLO Test results
uses: actions/download-artifact@v4
with:
name: ydb-slo-action-test-results
path: '${{runner.temp}}/ydb-slo-action-test-results'

- name: Report YDB SLO Test results
uses: ydb-platform/ydb-slo-action/report@main
32 changes: 0 additions & 32 deletions .github/workflows/ydb-slo-action-test.yml

This file was deleted.

0 comments on commit d69acca

Please sign in to comment.