Skip to content

Commit

Permalink
Update repo template files
Browse files Browse the repository at this point in the history
  • Loading branch information
cathalnoonan committed Sep 2, 2023
1 parent 4c7a9ad commit 5a360bc
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 9 deletions.
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Bug report
description: Describe the issue and include steps to reproduce.
body:
- type: textarea
id: description
attributes:
label: Description
validations:
required: true
- type: textarea
id: steps_to_reproduce
attributes:
label: Steps to reproduce
description: |
Describe how to reproduce the issue.
Include any observations about what causes the issue to happen.
placeholder: |
1. ...
2. ...
3. ...
validations:
required: true
- type: textarea
id: screenshots
attributes:
label: Screenshots
description: |
Please include screenshots or gifs of the issue occurring.
Remember to hide any sensitive information included in the images.
validations:
required: false
- type: input
id: version
attributes:
label: Version installed
validations:
required: true
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
31 changes: 29 additions & 2 deletions .github/workflows/BUILD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ name: Build

on:
workflow_dispatch:
branches: [ main ]
push:
pull_request:

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down Expand Up @@ -38,3 +37,31 @@ jobs:
name: ${{ github.event.repository.name }}__extract_this_zip
path: ./dist/*
retention-days: 15

validate-resx-files:
name: Validate resx files
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup xmllint
run: |
if ! command -v xmllint &> /dev/null
then
sudo apt-get update
sudo apt-get install -y libxml2-utils
fi
shell: bash
- name: Check resx files contain valid xml
run: |
shopt -s globstar
for resx_file in $(/bin/ls ./**/*.resx)
do
if xmllint --noout "$resx_file" > /dev/null 2>&1 ;
then
echo "Valid: $resx_file"
else
echo "Invalid: $resx_file" && exit 1
fi
done
shell: bash
12 changes: 7 additions & 5 deletions control/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"extends": "./node_modules/pcf-scripts/tsconfig_base.json",
"compilerOptions": {
"typeRoots": ["node_modules/@types"],
"jsx": "react",
"sourceMap": true,
"esModuleInterop": true
"typeRoots": ["node_modules/@types"],
"jsx": "react",
"sourceMap": true,
"esModuleInterop": true,
"target": "ES2015",
"lib": ["dom", "es5", "scripthost", "es2015.promise"]
}
}
}
5 changes: 3 additions & 2 deletions control/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
// Generate a source map to make debugging easier.
devtool: 'source-map',

// Support older browsers.
target: ['web', 'es5'],
// Use "ES5" to support older browsers.
// IE11 is end of support, so this shouldn't be necessary anymore.
target: ['web', 'es2015'],
}

0 comments on commit 5a360bc

Please sign in to comment.