Compare commits
No commits in common. "17edb6325e5c4bcd4293be593cf7d4ed6a3cba56" and "2b6f3ca301348fc39abe1d8a62633dcc2ea8523d" have entirely different histories.
17edb6325e
...
2b6f3ca301
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@ -6,12 +6,23 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: laravel-runner-php84
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Node
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '24'
|
||||||
|
|
||||||
|
- name: Set up PHP with Composer
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: '8.4'
|
||||||
|
tools: composer:v2
|
||||||
|
|
||||||
- name: Install PHP dependencies
|
- name: Install PHP dependencies
|
||||||
run: composer install --no-interaction --prefer-dist --optimize-autoloader
|
run: composer install --no-interaction --prefer-dist --optimize-autoloader
|
||||||
|
|
||||||
@ -20,9 +31,6 @@ jobs:
|
|||||||
npm ci
|
npm ci
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
- name: Remove docs folder
|
|
||||||
run: rm -rf docs
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
@ -40,5 +48,5 @@ jobs:
|
|||||||
file: ${{ github.workspace }}/Dockerfile
|
file: ${{ github.workspace }}/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
gitgud.foo/thegrind/authentikate:latest
|
gitgud.foo/thegrind/flowtodo:latest
|
||||||
gitgud.foo/thegrind/authentikate:${{ github.event.release.tag_name }}
|
gitgud.foo/thegrind/flowtodo:${{ github.event.release.tag_name }}
|
41
.github/workflows/lint.yml
vendored
41
.github/workflows/lint.yml
vendored
@ -1,41 +0,0 @@
|
|||||||
name: linter
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- develop
|
|
||||||
- main
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- develop
|
|
||||||
- main
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
quality:
|
|
||||||
runs-on: laravel-runner-php84
|
|
||||||
environment: Testing
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Add Flux Credentials Loaded From ENV
|
|
||||||
run: composer config http-basic.composer.fluxui.dev "${{ secrets.FLUX_USERNAME }}" "${{ secrets.FLUX_LICENSE_KEY }}"
|
|
||||||
|
|
||||||
- name: Install Dependencies
|
|
||||||
run: |
|
|
||||||
composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
|
|
||||||
npm install
|
|
||||||
|
|
||||||
- name: Run Pint
|
|
||||||
run: vendor/bin/pint
|
|
||||||
|
|
||||||
# - name: Commit Changes
|
|
||||||
# uses: stefanzweifel/git-auto-commit-action@v5
|
|
||||||
# with:
|
|
||||||
# commit_message: fix code style
|
|
||||||
# commit_options: '--no-verify'
|
|
||||||
# file_pattern: |
|
|
||||||
# **/*
|
|
||||||
# !.github/workflows/*
|
|
59
.github/workflows/tests.yml
vendored
59
.github/workflows/tests.yml
vendored
@ -1,59 +0,0 @@
|
|||||||
name: tests
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- develop
|
|
||||||
- main
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- develop
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
ci:
|
|
||||||
runs-on: laravel-runner-php84
|
|
||||||
environment: Testing
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install Node Dependencies
|
|
||||||
run: npm i
|
|
||||||
|
|
||||||
- name: Add Flux Credentials Loaded From ENV
|
|
||||||
run: composer config http-basic.composer.fluxui.dev "${{ secrets.FLUX_USERNAME }}" "${{ secrets.FLUX_LICENSE_KEY }}"
|
|
||||||
|
|
||||||
- name: Install Dependencies
|
|
||||||
run: composer install --no-interaction --prefer-dist --optimize-autoloader
|
|
||||||
|
|
||||||
- name: Copy Environment File
|
|
||||||
run: cp .env.example .env
|
|
||||||
|
|
||||||
- name: Generate Application Key
|
|
||||||
run: php artisan key:generate
|
|
||||||
|
|
||||||
- name: Build Assets
|
|
||||||
run: npm run build
|
|
||||||
|
|
||||||
- name: Setup Test RSA Keys
|
|
||||||
run: |
|
|
||||||
echo "Setting up test RSA keys..."
|
|
||||||
mkdir -p storage/testing/oauth
|
|
||||||
php artisan app:generate-keys --path="storage/testing/oauth"
|
|
||||||
echo "✅ Test keys generated"
|
|
||||||
|
|
||||||
- name: Run Tests
|
|
||||||
run: ./vendor/bin/pest
|
|
||||||
|
|
||||||
- name: Cleanup Test Keys
|
|
||||||
if: always()
|
|
||||||
run: |
|
|
||||||
echo "Cleaning up test RSA keys..."
|
|
||||||
if [ -d "storage/testing" ]; then
|
|
||||||
rm -rf storage/testing
|
|
||||||
echo "✅ Test storage directory cleaned up"
|
|
||||||
else
|
|
||||||
echo "ℹ️ No test storage directory found to clean up"
|
|
||||||
fi
|
|
Loading…
x
Reference in New Issue
Block a user