An open API service indexing awesome lists of open source software.

https://github.com/twisterrob/github-workflows

Reusable GitHub Actions workflows for my repositories.
https://github.com/twisterrob/github-workflows

Last synced: 4 months ago
JSON representation

Reusable GitHub Actions workflows for my repositories.

Awesome Lists containing this project

README

          

# github-workflows
Reusable GitHub Actions workflows for my repositories.

## [validate.yml](.github/workflows/validate.yml)
Gradle wrapper, GitHub workflows and Renovate configuration validation.

```yaml
jobs:
validate:
name: "🦺 Validation"
uses: TWiStErRob/github-workflows/.github/workflows/validate.yml@v3
permissions:
contents: read
security-events: write
actions: read
```

## [instrumentation.yml](.github/workflows/instrumentation.yml)
Run Android instrumentation tests on an emulator and upload artifacts.

```yaml
jobs:
instrumentation:
name: "🧪 Instrumentation Tests on" # / API ${{ matrix.api }} will be appended by used workflow.
needs: validate
uses: ./.github/workflows/instrumentation.yml
permissions:
contents: read
checks: write
statuses: write
```

```yaml
name: "🧪 Instrumentation Test Matrix"

on:
workflow_call

jobs:
instrumentation:
name: "${{ matrix.api }}"

uses: TWiStErRob/github-workflows/.github/workflows/instrumentation.yml@v3
with:
android-api: ${{ matrix.api }}
script: >
./gradlew
--no-daemon
--continue
--stacktrace
:app:connectedCheck

permissions:
contents: read
checks: write
statuses: write

strategy:
fail-fast: false
matrix:
# The API level, see https://apilevels.com/.
api:
- 29
- 33
```

## Related docs
* https://docs.github.com/en/actions/using-workflows/reusing-workflows