mirror of
https://github.com/YuzuZensai/Pien-Studio.git
synced 2026-09-02 14:18:35 +00:00
♻️ refactor!: massive refactor
This commit is contained in:
@@ -15,9 +15,42 @@ env:
|
||||
NEXT_TELEMETRY_DISABLED: "1"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Run tests
|
||||
validate:
|
||||
name: ${{ matrix.check.name }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
check:
|
||||
- name: Lint
|
||||
command: bun run lint
|
||||
- name: Typecheck
|
||||
command: bun run typecheck
|
||||
- name: Tests
|
||||
command: bun run test
|
||||
- name: Format
|
||||
command: bun run format
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: 1.1.38
|
||||
|
||||
- name: Install dependencies
|
||||
run: bun install --frozen-lockfile
|
||||
|
||||
- name: Run ${{ matrix.check.name }}
|
||||
run: ${{ matrix.check.command }}
|
||||
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
needs: validate
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
@@ -32,13 +65,13 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: bun install --frozen-lockfile
|
||||
|
||||
- name: Run tests
|
||||
run: bun run test
|
||||
- name: Build
|
||||
run: bun run build
|
||||
|
||||
docker:
|
||||
name: Build and publish Docker images - ${{ matrix.app }}
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
needs: build
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||
strategy:
|
||||
matrix:
|
||||
|
||||
Reference in New Issue
Block a user