-
Notifications
You must be signed in to change notification settings - Fork 23
47 lines (44 loc) · 1.49 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Test Suite
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
workflow_call:
jobs:
test_basic:
runs-on: ubuntu-latest
name: Basic Usage
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test deployment marker
uses: ./
env:
NEW_RELIC_ACCOUNT_ID: ${{ secrets.NEW_RELIC_ACCOUNT_ID }}
NEW_RELIC_SERVICE_NAME: github-action-integration-test|deployment-marker
with:
apiKey: ${{ secrets.NEW_RELIC_API_KEY }}
guid: ${{ secrets.NEW_RELIC_DEPLOYMENT_ENTITY_GUID }}
version: "deployment-marker-action-basic-test:${{ github.ref }}"
test_all_inputs:
runs-on: ubuntu-latest
name: All Inputs
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test deployment marker
uses: ./
env:
NEW_RELIC_ACCOUNT_ID: ${{ secrets.NEW_RELIC_ACCOUNT_ID }}
NEW_RELIC_SERVICE_NAME: github-action-integration-test|deployment-marker
with:
apiKey: ${{ secrets.NEW_RELIC_API_KEY }}
guid: ${{ secrets.NEW_RELIC_DEPLOYMENT_ENTITY_GUID }}
version: "deployment-marker-action-all-input-test-${{ github.sha }}"
# Optional params
changelog: "See https://github.com/${{ github.repository }}/blob/master/CHANGELOG.md for details"
description: "Automated Deployment via Github Actions"
region: ${{ secrets.NEW_RELIC_REGION }}
user: "hardcoded-test-username"