Skip to content

Commit

Permalink
Add GitHub Actions workflows (DataDog#1787)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek authored Mar 31, 2023
1 parent f42e594 commit a4f6ae6
Show file tree
Hide file tree
Showing 8 changed files with 1,358 additions and 116 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Master

on:
push:
branches:
- master

jobs:
test:
uses: ./.github/workflows/test-all.yml
with:
repo: extras

# Options
standard: true
secrets: inherit

publish-test-results:
needs:
- test
if: success() || failure()
concurrency:
group: test-results

uses: DataDog/integrations-core/.github/workflows/test-results-master.yml@master
secrets: inherit
17 changes: 17 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: PR

on:
pull_request:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref }}
cancel-in-progress: true

jobs:
test:
uses: DataDog/integrations-core/.github/workflows/pr-test.yml@master
with:
repo: extras
secrets: inherit
17 changes: 17 additions & 0 deletions .github/workflows/publish-test-results-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish test results for PRs

on:
workflow_run:
workflows:
- PR
types:
- completed

jobs:
publish:
uses: DataDog/integrations-core/.github/workflows/test-results-pr.yml@master
if: github.event.workflow_run.conclusion != 'skipped'
permissions:
checks: write
pull-requests: write
secrets: inherit
51 changes: 51 additions & 0 deletions .github/workflows/test-agent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Test Agent release

on:
workflow_dispatch:
inputs:
test-py3:
required: false
description: Run Python 3 tests
default: true
type: boolean
agent-image:
required: false
description: Agent 7 image
default: "datadog/agent:7-rc"
type: string
agent-image-windows:
required: false
description: Agent 7 image on Windows
default: "datadog/agent:7-rc-servercore"
type: string
test-py2:
required: false
description: Run Python 2 tests
default: true
type: boolean
agent-image-py2:
required: false
description: Agent 6 image
default: "datadog/agent:6-rc"
type: string
agent-image-windows-py2:
required: false
description: Agent 6 image on Windows
default: "datadog/agent-dev:master-py2-win-servercore"
type: string

jobs:
test:
uses: ./.github/workflows/test-all.yml
with:
repo: extras

# Options
standard: true
test-py2: ${{ inputs.test-py2 }}
test-py3: ${{ inputs.test-py3 }}
agent-image: "${{ inputs.agent-image }}"
agent-image-py2: "${{ inputs.agent-image-py2 }}"
agent-image-windows: "${{ inputs.agent-image-windows }}"
agent-image-windows-py2: "${{ inputs.agent-image-windows-py2 }}"
secrets: inherit
Loading

0 comments on commit a4f6ae6

Please sign in to comment.