Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '22'
- name: Clean cache
run: npm cache clean --force

- name: Install Dependencies
run: npm ci



- name: Build
run: npm run build

- name: Deploy
env:
DT_APP_OAUTH_CLIENT_ID: ${{ secrets.CLIENT_ID }}
DT_APP_OAUTH_CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
DT_APP_ENVIRONMENT_URL: ${{ secrets.ENVIRONMENT_URL }}
run: echo $DT_APP_OAUTH_CLIENT_ID && $DT_APP_OAUTH_CLIENT_SECRET && $DT_APP_ENVIRONMENT_URL && npm run deploy
Empty file added .npmrc
Empty file.
14 changes: 0 additions & 14 deletions app.config.json

This file was deleted.

23 changes: 23 additions & 0 deletions app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { CliOptions } from "dt-app";

const config: CliOptions = {
"environmentUrl": process.env.ENVIRONMENT_URL ?? "https://wkf10640.apps.dynatrace.com/",
"app": {
"name": "new-tutorial",
"version": "0.0.0",
"description": "A starting project with routing, fetching data, and charting",
"id": "my.new.tutorial.github.actions",
"scopes": [
{ "name": "storage:buckets:read", "comment": "default template" },
{ "name": "storage:metrics:read", "comment": "default template" },
{ "name": "storage:entities:read", "comment": "default template" },
{ "name" : "app-engine:apps:install", "comment": "Deploying permission"},
{ "name" : "app-engine:apps:delete", "comment": "Deploying permission"},
{ "name" : "app-engine:apps:run", "comment": "Deploying permission"},
{ "name" : "app-settings:objects:read", "comment": "Deploying permission"}
]
}
};


module.exports = config;
Loading
Loading