Merge pull request #50 from Jelloeater/Jelloeater-patch-1 #290
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: { } | |
push: | |
branches: [ main ] | |
tags: [ "*" ] | |
# workflow_dispatch: | |
jobs: | |
test: | |
runs-on: "ubuntu-latest" | |
env: # These need to be set in the repo or the builds will fail | |
HUBITAT_API_APP_ID: ${{ secrets.HUBITAT_API_APP_ID }} | |
HUBITAT_API_TOKEN: ${{ secrets.HUBITAT_API_TOKEN }} | |
HUBITAT_HOST: ${{ secrets.HUBITAT_HOST }} | |
HUBITAT_CLOUD_TOKEN: ${{ secrets.HUBITAT_CLOUD_TOKEN }} | |
steps: | |
- uses: actions/checkout@v2 | |
- run: tree | |
- run: sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin | |
- run: task setup | |
- run: task security | |
- uses: nick-fields/retry@v2 | |
with: | |
timeout_minutes: 5 | |
max_attempts: 3 | |
retry_on: error | |
command: task test | |