build: fix build and add examples
This commit is contained in:
39
.github/ISSUE_TEMPLATE/bug_report.yaml
vendored
Normal file
39
.github/ISSUE_TEMPLATE/bug_report.yaml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Bug report
|
||||
description: Create a report to help us improve
|
||||
title: '[Bug]: '
|
||||
|
||||
body:
|
||||
- type: input
|
||||
id: version
|
||||
attributes:
|
||||
label: Version
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: input
|
||||
id: reproduction
|
||||
attributes:
|
||||
label: Please provide a link to a minimal reproduction of the bug
|
||||
|
||||
- type: textarea
|
||||
id: exception-or-error
|
||||
attributes:
|
||||
label: Please provide the exception or error you saw
|
||||
render: true
|
||||
|
||||
- type: textarea
|
||||
id: steps-to-reproduce
|
||||
attributes:
|
||||
label: Steps to reproduce the behavior
|
||||
render: true
|
||||
|
||||
- type: textarea
|
||||
id: expectation
|
||||
attributes:
|
||||
label: A clear and concise description of what you expected to happen.
|
||||
render: true
|
||||
|
||||
- type: textarea
|
||||
id: other
|
||||
attributes:
|
||||
label: Additional context
|
||||
19
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
19
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: '[Feature Request]: '
|
||||
labels: ''
|
||||
assignees: ''
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
||||
13
.github/ISSUE_TEMPLATE/question.md
vendored
Normal file
13
.github/ISSUE_TEMPLATE/question.md
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
name: Question
|
||||
about: Ask a question using this lib like 'How can I ...'
|
||||
title: '[Question]: '
|
||||
labels: ['question']
|
||||
assignees: ''
|
||||
---
|
||||
|
||||
**What Version of the library are you using?**
|
||||
...
|
||||
|
||||
**Question**
|
||||
How can I ...
|
||||
7
.github/ISSUE_TEMPLATE/refactoring.md
vendored
Normal file
7
.github/ISSUE_TEMPLATE/refactoring.md
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
name: Code refactoring
|
||||
about: Any code improvements which make the code better
|
||||
title: '[Refactoring]: '
|
||||
assignees: 'FabianGosebrink'
|
||||
labels: ['refactoring']
|
||||
---
|
||||
55
.github/workflows/build.yml
vendored
Normal file
55
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
name: Build, Lint & Test Lib
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened, closed]
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build_job:
|
||||
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.action != 'closed')
|
||||
runs-on: ubuntu-latest
|
||||
name: Build, Lint and Test Library
|
||||
steps:
|
||||
- name: Check Permissions When Workflow Dispatch
|
||||
id: check_admin
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node and Install Dependencies
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 10
|
||||
run_install: |
|
||||
- recursive: true
|
||||
args: [--frozen-lockfile]
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Linting Library
|
||||
run: npm run lint
|
||||
|
||||
- name: Testing Frontend
|
||||
run: npm run test-ci
|
||||
|
||||
- name: 'Report Coverage'
|
||||
if: always()
|
||||
uses: davelosert/vitest-coverage-report-action@v2
|
||||
|
||||
- name: Building Frontend
|
||||
run: npm run build
|
||||
|
||||
- name: Show files
|
||||
run: ls
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: oidc_client_rx_artifact
|
||||
path: dist
|
||||
Reference in New Issue
Block a user