Skip to content

Commit

Permalink
workflow to test GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
cybersokari committed Dec 16, 2024
1 parent 252fc67 commit 97029d5
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docker-action.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build & deploy
name: Deploy GitHub Action
on:
workflow_dispatch:

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docker.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build & deploy
name: Deploy Docker
on:
workflow_dispatch:
push:
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ name: Github Actions use case
on:
workflow_dispatch:
inputs:
job:
description: 'Select the job to run: test-docker or test-action'
required: true
default: 'test-action'
storage-bucket:
description: 'Your Firebase (GCP) storage bucket'
required: true
keep-retries:
keep-results:
description: 'Backup results to keep retries'
required: false
default: 'false'
Expand All @@ -22,7 +26,8 @@ on:
default: '1h'

jobs:
generate-publish:
test-docker:
if: ${{ github.event.inputs.job == 'test-docker' }}
runs-on: ubuntu-latest
env:
GCP_SECRETS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
Expand Down Expand Up @@ -58,15 +63,19 @@ jobs:
sokari/allure-deployer:latest
test-action:
if: ${{ github.event.inputs.job == 'test-action' }}
runs-on: ubuntu-latest
steps:
- name: Allure Deployer Action
uses: ./packages/action
uses: cybersokari/allure-deployer-action@v1.0.0
env:
SLACK_TOKEN: ${{secrets.SLACK_TOKEN}}
GOOGLE_CREDENTIALS_JSON: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
with:
allure_results_path: '${{ github.workspace }}/assets/allure-results'
storage_bucket: ${{github.event.inputs.storage-bucket}}
website_id: ${{ github.event.inputs.website-id }}
slack_channel_id: ${{secrets.SLACK_CHANNEL_ID}}
website_expires: ${{github.event.inputs.website-expires}}
slack_channel_id: ${{secrets.SLACK_CHANNEL_ID}}
keep_history: ${{github.event.inputs.keep-history}}
keep_results: ${{github.event.inputs.keep-results}}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Allure Report Deployer

![Deployment](https://github.com/cybersokari/allure-docker-deploy/actions/workflows/deploy.yaml/badge.svg?branch=main)
![Docker](https://github.com/cybersokari/allure-docker-deploy/actions/workflows/deploy-docker.yaml/badge.svg?branch=main)
![GitHub Action](https://github.com/cybersokari/allure-docker-deploy/actions/workflows/deploy-docker-action.yaml/badge.svg?branch=main)

![](https://img.shields.io/docker/pulls/sokari/allure-deployer)

**Host your Allure test reports on a website. No server required.**
Expand Down
9 changes: 4 additions & 5 deletions packages/shared/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 97029d5

Please sign in to comment.