github actions workflows added (#1947)

* github actions workflows added

* added playwright tests

* Apply suggestions from code review

* Update .github/workflows/push.yaml
This commit is contained in:
Sriram
2025-01-17 17:03:46 +00:00
committed by GitHub
parent 81fd5f4404
commit 88b732e062
8 changed files with 190 additions and 29 deletions

32
.github/workflows/publish.yaml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: Plugins - CD
run-name: Deploy ${{ inputs.branch }} to ${{ inputs.environment }} by @${{ github.actor }}
on:
workflow_dispatch:
inputs:
branch:
description: Branch to publish from. Can be used to deploy PRs to dev
default: main
environment:
description: Environment to publish to
required: true
type: choice
options:
- 'dev'
- 'ops'
- 'prod'
docs-only:
description: Only publish docs, do not publish the plugin
default: false
type: boolean
jobs:
cd:
name: CD
uses: grafana/plugin-ci-workflows/.github/workflows/cd.yml@main
with:
go-version: '1.23.5'
branch: ${{ github.event.inputs.branch }}
environment: ${{ github.event.inputs.environment }}
docs-only: ${{ fromJSON(github.event.inputs.docs-only) }}
run-playwright: true