Skip to content

Commit

Permalink
Merge pull request #46 from fsegurai/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
fsegurai authored Nov 5, 2024
2 parents bb71de7 + ee5c063 commit 0122eef
Show file tree
Hide file tree
Showing 27 changed files with 966 additions and 339 deletions.
59 changes: 59 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Bug Report
description: File a bug report
title: "[Bug]"
labels: bug
body:
- type: textarea
id: issue
attributes:
label: Description of the issue
description: What's the issue you encountered?
validations:
required: true
- type: textarea
id: repro
attributes:
label: Reproduction steps
description: How can the issue be reproduced?
placeholder: Describe each step as precisely as possible
validations:
required: true
- type: textarea
id: log
attributes:
label: Log file
description: A log file will help our developers to better diagnose and fix the issue.
placeholder: Paste the log file here
validations:
required: true
- type: input
id: version
attributes:
label: Version
description: Which version of the software are you using?
placeholder: 1.0.0
validations:
required: true
- type: input
id: os
attributes:
label: OS
placeholder: "e.g. Windows 10"
validations:
required: true
- type: input
id: browser
attributes:
label: Browser
placeholder: "e.g. Chrome"
validations:
required: true
- type: textarea
id: additional-context
attributes:
label: Additional context?
description: |
- Additional info about your environment:
- Any other information relevant to your issue.
validations:
required: false
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: @fsegurai/ngx-markdown Issues
url: https://github.com/fsegurai/ngx-markdown/issues
about: This is for development, support and technical issues/questions.
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Feature Request
description: Suggest a new feature for @fsegurai/ngx-markdown.
title: "[Feature Request]"
labels: enhancement
body:
- type: textarea
id: overview
attributes:
label: Overview
description: Include the basic, high-level concepts for this feature here.
validations:
required: true
- type: textarea
id: details
attributes:
label: Smaller details
description: These may include specific methods of implementation etc.
validations:
required: true
- type: textarea
id: request
attributes:
label: Nature of request
validations:
required: true
- type: textarea
id: feature
attributes:
label: Why would this feature be useful?
validations:
required: true
48 changes: 48 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
infra:
- changed-files:
- any-glob-to-any-file: [
'.github/**',
'angular.json',
'package*.json',
'tsconfig*.json',
'eslint*.json',
]

ci-cd:
- changed-files:
- any-glob-to-any-file: [
'.github/workflows/**',
'Dockerfile',
'Jenkinsfile',
]

demo:
- changed-files:
- any-glob-to-any-file: 'demo/**'

assets:
- changed-files:
- any-glob-to-any-file: 'demo/public/**'

styles:
- changed-files:
- any-glob-to-any-file: '**/*.scss'

library:
- changed-files:
- any-glob-to-any-file: 'lib/**'

tests:
- changed-files:
- any-glob-to-any-file: [
'demo/**/*.spec.ts',
'lib/**/*.spec.ts',
'**/karma.conf.js',
]

docs:
- changed-files:
- any-glob-to-any-file: [
'README.md',
'docs/**',
]
26 changes: 26 additions & 0 deletions .github/reviewers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
infra:
- fsegurai

ci-cd:
- fsegurai

demo:
- fsegurai

assets:
- fsegurai

styles:
- fsegurai

library:
- fsegurai

tests:
- fsegurai

docs:
- fsegurai

default:
- '@developers'
98 changes: 98 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: Build Library & Demo

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

jobs:
build_library:
runs-on: ubuntu-latest
environment: FSI_DEP_NodeJs
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js - Version ${{ vars.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ vars.NODE_VERSION }}
cache: 'yarn'

- name: Create cache directories
run: mkdir -p ~/.cache/yarn && mkdir -p ${{ github.workspace }}/.yarn

- name: Cache Yarn dependencies
uses: actions/cache@v4
with:
path: |
~/.cache/yarn
${{ github.workspace }}/.yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build library
run: |
yarn build:lib
yarn postBuild:lib
- name: Upload build library artifacts
if: |
github.ref == 'refs/heads/main' &&
github.event.repository.fork == false
uses: actions/upload-artifact@v4
with:
name: build-lib-artifacts
path: ${{ vars.DEMO_PATH }}
if-no-files-found: error

build_demo:
runs-on: ubuntu-latest
environment: github-pages
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js - Version ${{ vars.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ vars.NODE_VERSION }}
cache: 'yarn'

- name: Create cache directories
run: mkdir -p ~/.cache/yarn && mkdir -p ${{ github.workspace }}/.yarn

- name: Cache Yarn dependencies
uses: actions/cache@v4
with:
path: |
~/.cache/yarn
${{ github.workspace }}/.yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build demo
run: |
yarn gh-pages:build
yarn gh-pages:copy404
yarn gh-pages:postBuild
- name: Upload build demo artifacts
if: |
github.ref == 'refs/heads/main' &&
github.event.repository.fork == false
uses: actions/upload-artifact@v4
with:
name: build-demo-artifacts
path: ${{ vars.DEMO_PATH }}
if-no-files-found: error
25 changes: 25 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build PR

on:
pull_request:
branches: [ main ]
paths:
- '**'
- '!.github/**'
- '!*.yml'
- '!*.config'
- '!*.md'
- '.github/workflows/*.yml'

permissions:
pull-requests: write
checks: write

concurrency:
group: pr-checks-${{ github.event.number }}
cancel-in-progress: true

jobs:
pr_build:
uses: ./.github/workflows/build.yml
secrets: inherit
Loading

0 comments on commit 0122eef

Please sign in to comment.