diff --git a/.github/workflows/deploy-docker-action.yaml b/.github/workflows/deploy-docker-action.yaml index 1378842..39e046e 100644 --- a/.github/workflows/deploy-docker-action.yaml +++ b/.github/workflows/deploy-docker-action.yaml @@ -1,4 +1,4 @@ -name: Build & deploy +name: Deploy GitHub Action on: workflow_dispatch: diff --git a/.github/workflows/deploy-docker.yaml b/.github/workflows/deploy-docker.yaml index 0fe3acf..139c52d 100644 --- a/.github/workflows/deploy-docker.yaml +++ b/.github/workflows/deploy-docker.yaml @@ -1,4 +1,4 @@ -name: Build & deploy +name: Deploy Docker on: workflow_dispatch: push: diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 9b40d0a..2896c19 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -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' @@ -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 }} @@ -58,10 +63,11 @@ 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 }} @@ -69,4 +75,7 @@ jobs: 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}} \ No newline at end of file + 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}} \ No newline at end of file diff --git a/README.md b/README.md index 987d0c8..fea6ae9 100644 --- a/README.md +++ b/README.md @@ -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.** diff --git a/packages/shared/package-lock.json b/packages/shared/package-lock.json index 8191ff7..39379b9 100644 --- a/packages/shared/package-lock.json +++ b/packages/shared/package-lock.json @@ -1,10 +1,12 @@ { - "name": "allure-deploy", + "name": "@allure/shared", + "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "allure-deploy", + "name": "@allure/shared", + "version": "1.0.0", "dependencies": { "@google-cloud/storage": "^7.14.0", "@slack/web-api": "^7.8.0", @@ -34,9 +36,6 @@ "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "^4.9.0" - }, - "engines": { - "node": "22" } }, "node_modules/@ampproject/remapping": {