Skip to content

Commit

Permalink
ci stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
devajmeireles committed Sep 16, 2024
1 parent 936c3fc commit e314467
Show file tree
Hide file tree
Showing 6 changed files with 223 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

github: [devajmeireles]
63 changes: 63 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Bug Report
description: Report an issue or bug with the TallStackU EnvBar
title: "[Bug]: "
labels: ["bug"]
assignees: devajmeireles
body:
- type: markdown
attributes:
value: |
We're sorry to hear you have a problem. Can you help us solve it by providing the following details.
- type: textarea
id: what-happened
attributes:
label: What Happened
description: What did you expect to happen?
placeholder: When I open the welcome page I get an error
validations:
required: true
- type: textarea
id: reproduce
attributes:
label: How to Reproduce
description: How did this occur, please add any config values used and provide a set of reliable steps if possible.
placeholder: Install a fresh Laravel app, install TallStackUi EnvBar, visit the page
validations:
required: true
- type: input
id: repository
attributes:
label: Public Repository
description: If possible, please provide a public repository that reproduces the issue.
placeholder: https://github.com/your-username/repository
- type: input
id: laravel-version
attributes:
label: Laravel Version
description: What version of Laravel are you running? Please be as specific as possible
placeholder: For example, 10.30.0
validations:
required: true
- type: input
id: envbar-version
attributes:
label: TallStackUi EnvBar Version
description: What version of our Package are you running? Please be as specific as possible
placeholder: For example, 1.0.0
validations:
required: true
- type: input
id: php-version
attributes:
label: PHP Version
description: What version of PHP are you running? Please be as specific as possible
placeholder: For example, 8.1.20
validations:
required: true
- type: textarea
id: notes
attributes:
label: Notes
description: Use this field to provide any other notes that you feel might be relevant to the issue.
validations:
required: false
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Feature Request
description: Request a new feature to the TallStackUi EnvBar
title: "[Feature Request]: "
labels: ["feature request"]
assignees: devajmeireles
body:
- type: textarea
id: suggestion-theme
attributes:
label: Suggestion Theme
description: Describe the main theme of your suggestion
validations:
required: true
- type: textarea
id: main-benefits
attributes:
label: Main Benefits
description: We would like to understand what the main benefits of your suggestion would be.
validations:
required: true
- type: input
id: source-of-the-suggestion
attributes:
label: Source of the Suggestion
description: Is your suggestion based on another library? If yes, say which one.
placeholder: Insert the link to the website, docs or repository.
- type: textarea
id: notes
attributes:
label: Notes
description: Use this field to provide any other notes that you feel might be relevant to the suggestion, like image or video.
validations:
required: false
31 changes: 31 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!--
Thank you for your interest in contributing to
TallStackUI. Please, fill in the form below
correctly. This will help us to understand your PR.
-->

### Checklist:

- [ ] I read the [CONTRIBUTION GUIDE](https://tallstackui.com/docs/contribution)
- [ ] I created a new branch on my fork for this pull request
- [ ] I ensure that the current tests are passing
- [ ] I added tests that prove this pull request is working

<!-- WARNING! The pull request may be disapproved
if you haven't created a new branch on your fork. -->

### What:

- [ ] Feature
- [ ] Enhancements
- [ ] Bugfix

### Description:

<!-- Describe your PR, which more details as possible. -->

### Demonstration & Notes:

<!-- Insert a demonstration about the changes or
the features (image, gif or video), and also
add any notes that you think are important. -->
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
87 changes: 87 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: Tests

on:
push:
branches:
- 1.x
pull_request:
branches:
- 1.x
workflow_dispatch:

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [8.1, 8.2, 8.3]
laravel: ['10.*', '11.*']
exclude:
- laravel: 11.*
php: 8.1

name: OS:${{ matrix.os }} / PHP:${{ matrix.php }} / Laravel:${{ matrix.laravel }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18.x

- run: npm install

- run: npm run lint

- run: npm run build

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
tools: composer:v2
coverage: none

- name: Install Composer
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-progress --ansi --no-update
composer update --no-interaction --no-progress --ansi
- name: Rector Cache
uses: actions/cache@v4
with:
path: ./var/cache/rector
key: ${{ runner.os }}-rector-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-rector-

- name: Setup Google Chrome
run: vendor/bin/dusk-updater detect --auto-update

- name: Pint
run: ./vendor/bin/pint --test

- name: Type Coverage
run: ./vendor/bin/pest --type-coverage --min=100

- name: Rector
run: ./vendor/bin/rector process --dry-run --config=rector.php

- name: PhpStan
run: ./vendor/bin/phpstan --configuration="phpstan.neon"

- name: Clear Orchestra Testbench Cache
run: ./vendor/bin/testbench view:clear

- name: Structure Tests
run: ./vendor/bin/pest --ci --filter Structure

- name: Browser Tests
run: ./vendor/bin/pest --ci --filter Browser --order-by random --stop-on-failure
env:
CI: true

0 comments on commit e314467

Please sign in to comment.