Skip to content

Commit

Permalink
Version update to v1.0.0, revision f5beac5
Browse files Browse the repository at this point in the history
  • Loading branch information
QA Wolf bot committed Oct 21, 2024
1 parent f715434 commit fa53706
Show file tree
Hide file tree
Showing 7 changed files with 34,107 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## v1.0.0

- New Github action to upload a file to the run inputs executables bucket.
75 changes: 74 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,74 @@
# upload-run-inputs-executable-action
# Notify QA Wolf on Deploy

## Introduction

This action uploads a executable file to be used in a test workflow. this action uses [the `@qawolf/ci-sdk`
package](https://www.npmjs.com/package/@qawolf/ci-sdk).

### `qawolf-api-key`

**Required**. The QA Wolf API key, which you can find on the application's team settings page.

### `input-file-path`

**Required**. The path to the file to be uploaded. Must exist at this location on the file system.

## Outputs

### `destination-file-path`

The location the file will be available at in the playground's file system.

### Usage Example

```yml
name: Upload Run Input File
on: workflow_dispatch:
jobs:
upload-input-file:
runs-on: ubuntu-latest
steps:
....
- name: Upload Run Input
uses: qawolf/upload-run-inputs-executable-action@v1
with:
qawolf-api-key: "${{ secrets.QAWOLF_API_KEY }}"
input-file-path: "path/to/file.apk"
....
```

### Usage within in a Trigger Workflow

The `qawolf/upload-run-inputs-executable-action` will output `destination-file-path` with the location the file will be available at in the playground's file system. To use this in a test workflow you can add this value as a `RUN_INPUT_PATH` environmental variable in the `qawolf/notify-qawolf-on-deploy-action@v1` action.

For official documentation on Triggering test runs refer to [Trigger test runs on deployment](https://qawolf.notion.site/Triggering-test-runs-on-deployment-0f12fb5260de4362a5ebe33d8a2f9538)

Official documentation for the Notify QA Wolf on Deploy Action is located at [Notify QA Wolf on Deploy Action] (https://github.com/marketplace/actions/notify-qa-wolf-on-deploy)

```yml
name: Deploy and Notify QA Wolf
on: pull_request
jobs:
...
notify:
needs: deploy-preview-environmnent
name: Trigger QA Wolf PR testing
runs-on: ubuntu-latest
steps:
...
# Upload the run input file
- name: Upload Run Input
id: upload-run-inputs-executable
uses: qawolf/upload-run-inputs-executable-action@v1
with:
qawolf-api-key: "${{ secrets.QAWOLF_API_KEY }}"
input-file-path: "path/to/file.apk"
- name: Notify QA Wolf of deployment
uses: qawolf/notify-qawolf-on-deploy-action@v1
env:
...
# Use the output in the RUN_INPUT_PATH environmental variable
RUN_INPUT_PATH: "${{ steps.upload-run-inputs-executable.outputs.destination-file-path }}"
...
with: ...
```
18 changes: 18 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Upload Run Inputs Executable"
description: "Uploads a file to the run inputs executables bucket"
branding:
icon: "git-merge"
color: "purple"
inputs:
qawolf-api-key:
description: "QA Wolf API key. You can find it in the application team settings page."
required: true
input-file-path:
description: "Path to the file to be uploaded."
required: true
outputs:
destination-file-path:
description: "The file location in the QA Wolf runs file system."
runs:
using: "node20"
main: "dist/index.js"
Loading

0 comments on commit fa53706

Please sign in to comment.