Skip to content

Commit

Permalink
Merge pull request #26 from netdata/feat/scheduled-tests
Browse files Browse the repository at this point in the history
feat: add scheduled tests
  • Loading branch information
witalisoft authored May 21, 2024
2 parents bf12a36 + a342d69 commit b2b1ddb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
pull_request:
paths-ignore:
- 'README.md'
schedule:
- cron: '35 11 * * *'

# Testing only needs permissions to read the repository contents.
permissions:
Expand Down Expand Up @@ -80,3 +82,19 @@ jobs:
NETDATA_CLOUD_AUTH_TOKEN: "${{ secrets.NETDATA_CLOUD_AUTH_TOKEN }}"
SPACE_ID_NON_COMMUNITY: "${{ secrets.SPACE_ID_NON_COMMUNITY }}"
run: go test ./... -sweep empty

notify:
name: Notify if fails when scheduled
needs: [build, generate, test]
runs-on: ubuntu-latest
if: ${{ always() && contains(needs.*.result, 'failure') && github.event_name == 'schedule' }}
timeout-minutes: 5
steps:
- name: add new github issue
uses: dacbd/[email protected]
with:
token: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}
repo: infra
title: Failed terraform-provider-netdata test
body: |
[Failed job](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})

0 comments on commit b2b1ddb

Please sign in to comment.