Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: initial empty scaffold project #69

Merged
merged 4 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
39 changes: 39 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Set update schedule for GitHub Actions

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
# check at 3am UTC
time: "03:00"
open-pull-requests-limit: 20

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: daily
# check at 3am UTC
time: "03:00"
open-pull-requests-limit: 20
groups:
storybook:
applies-to: version-updates
patterns:
- "@storybook/*"
- "storybook"
- "storybook-dark-mode"
docusaurus:
applies-to: version-updates
patterns:
- "@docusaurus/*"
fortawesome:
applies-to: version-updates
patterns:
- "@fortawesome/*"
typescript-eslint:
applies-to: version-updates
patterns:
- "@typescript-eslint/*"
- "typescript-eslint"
2 changes: 2 additions & 0 deletions .github/semantic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
enabled: true
titleAndCommits: true
76 changes: 76 additions & 0 deletions .github/workflows/pr-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
#
# Copyright (C) 2024 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

name: pr-check

on: [pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

jobs:
lint-format-unit:
name: build, linter, formatters and unit tests / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 40
strategy:
fail-fast: false
matrix:
os: [windows-2022, ubuntu-24.04, macos-15]
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Execute pnpm
run: pnpm install

- name: Execute pnpm build
run: pnpm build

- name: Run linter
run: pnpm lint:check

- name: Run formatter
run: pnpm format:check

- name: Run unit tests
run: pnpm test:unit

- name: Run typecheck
run: pnpm typecheck

- name: Run svelte check
run: pnpm svelte:check

# Check we don't have changes in git
- name: Check no changes in git
if: ${{ matrix.os=='ubuntu-24.04'}}
run: |
if ! git diff --exit-code; then
echo "Found changes in git"
exit 1
fi
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.DS_Store
node_modules
/dist
/.svelte-kit
/.eslintcache
/coverage
.env
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node-linker=hoisted

35 changes: 35 additions & 0 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"formatter": {
"indentStyle": "space",
"lineWidth": 120,
"attributePosition": "auto"
},
"files": {
"maxSize": 1600000,
"ignore": ["**/coverage/**", "**/dist/**", "**/.svelte-kit/**"]
},
"javascript": {
"formatter": {
"arrowParentheses": "asNeeded",
"bracketSameLine": true,
"attributePosition": "auto",
"quoteStyle": "single"
}
},
"json": {
"formatter": {
"indentWidth": 2
}
},
"css": {
"formatter": {
"quoteStyle": "single"
}
},
"linter": {
"enabled": true
},
"organizeImports": {
"enabled": false
}
}
Loading