Skip to content

Commit

Permalink
Update test cases with notify testers case (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojciech Zięba authored Aug 12, 2020
1 parent 785f7cc commit 490e3d2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Sample workflow for App Center action
on: [push]
on: [push, pull_request, workflow_dispatch]
jobs:
run:
runs-on: ubuntu-latest
Expand All @@ -8,26 +8,35 @@ jobs:
uses: actions/checkout@master
- name: Get sample .apk for test purposes
run: wget --output-document ApiDemos-debug.apk https://github.com/appium/appium/blob/906350fd335f9485376214fdd17c7cdb6c9ff26b/sample-code/apps/ApiDemos-debug.apk?raw=true
- name: Upload artefact with provided release notes
- name: Upload artifact with provided release notes
uses: ./
with:
appName: ${{secrets.APP_NAME}}
token: ${{secrets.API_TOKEN}}
group: Collaborators
file: ApiDemos-debug.apk
releaseNotes: New bugs
- name: Upload artefact with empty release notes
- name: Upload artifact with empty release notes
uses: ./
with:
appName: ${{secrets.APP_NAME}}
token: ${{secrets.API_TOKEN}}
group: Collaborators
file: ApiDemos-debug.apk
- name: Upload artefact with GIT generated release notes
- name: Upload artifact with Git generated release notes
uses: ./
with:
appName: ${{secrets.APP_NAME}}
token: ${{secrets.API_TOKEN}}
group: Collaborators
file: ApiDemos-debug.apk
gitReleaseNotes: true
- name: Upload artifact and notify testers
uses: ./
with:
appName: ${{secrets.APP_NAME}}
token: ${{secrets.API_TOKEN}}
group: Collaborators
file: ApiDemos-debug.apk
notifyTesters: true

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
![Sample workflow for App Center action](https://github.com/wzieba/AppCenter-Github-Action/workflows/Sample%20workflow%20for%20App%20Center%20action/badge.svg?branch=master)
<a href="https://github.com/wzieba/AppCenter-Github-Action/releases">![](https://img.shields.io/github/v/release/wzieba/AppCenter-Github-Action)</a>

This action uploads artefacts (.apk or .ipa) to Visual Studio App Center.
This action uploads artifacts (.apk or .ipa) to Visual Studio App Center.

## Inputs

Expand All @@ -21,7 +21,7 @@ This action uploads artefacts (.apk or .ipa) to Visual Studio App Center.

### `file`

**Required** Artefact to upload (.apk or .ipa)
**Required** Artifact to upload (.apk or .ipa)

### `releaseNotes`

Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
- name: build release
run: ./gradlew assembleRelease
- name: upload artefact to App Center
uses: wzieba/AppCenter-Github-Action@v1.1.1
uses: wzieba/AppCenter-Github-Action@v1
with:
appName: wzieba/Sample-App
token: ${{secrets.APP_CENTER_TOKEN}}
Expand Down

0 comments on commit 490e3d2

Please sign in to comment.