do install everywhere
This commit is contained in:
@@ -7,7 +7,7 @@ on:
|
|||||||
branches: [main, develop]
|
branches: [main, develop]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
install-dependencies:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
@@ -26,120 +26,71 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun ci
|
run: bun ci
|
||||||
|
|
||||||
- name: Upload node_modules artifact
|
|
||||||
uses: https://gitea.com/actions/gitea-upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: node_modules
|
|
||||||
path: node_modules/
|
|
||||||
retention-days: 1
|
|
||||||
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: install-dependencies
|
|
||||||
steps:
|
|
||||||
- name: Checkout repo
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install bun
|
|
||||||
uses: oven-sh/setup-bun@v2
|
|
||||||
with:
|
|
||||||
bun-version: 1.3.4
|
|
||||||
|
|
||||||
- name: Install node
|
|
||||||
uses: actions/setup-node@v6
|
|
||||||
with:
|
|
||||||
node-version: '22.x'
|
|
||||||
|
|
||||||
- name: Download node_modules artifact
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: node_modules
|
|
||||||
path: node_modules
|
|
||||||
|
|
||||||
- name: Build app
|
- name: Build app
|
||||||
run: bun --bun run build
|
run: bun --bun run build
|
||||||
|
|
||||||
- name: Upload build artifacts
|
|
||||||
uses: https://github.com/christopherHX/gitea-upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: build-output
|
|
||||||
path: build/
|
|
||||||
retention-days: 7
|
|
||||||
|
|
||||||
type-check:
|
type-check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: install-dependencies
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install bun
|
|
||||||
uses: oven-sh/setup-bun@v2
|
|
||||||
with:
|
|
||||||
bun-version: 1.3.4
|
|
||||||
|
|
||||||
- name: Install node
|
- name: Install node
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: '22.x'
|
node-version: '22.x'
|
||||||
|
|
||||||
- name: Download node_modules artifact
|
- name: Install bun
|
||||||
uses: actions/download-artifact@v4
|
uses: oven-sh/setup-bun@v2
|
||||||
with:
|
with:
|
||||||
name: node_modules
|
bun-version: 1.3.4
|
||||||
path: node_modules
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: bun ci
|
||||||
|
|
||||||
- name: Run type checking
|
- name: Run type checking
|
||||||
run: bun --bun run check
|
run: bun --bun run check
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: install-dependencies
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install bun
|
|
||||||
uses: oven-sh/setup-bun@v2
|
|
||||||
with:
|
|
||||||
bun-version: 1.3.4
|
|
||||||
|
|
||||||
- name: Install node
|
- name: Install node
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: '22.x'
|
node-version: '22.x'
|
||||||
|
|
||||||
- name: Download node_modules artifact
|
- name: Install bun
|
||||||
uses: actions/download-artifact@v4
|
uses: oven-sh/setup-bun@v2
|
||||||
with:
|
with:
|
||||||
name: node_modules
|
bun-version: 1.3.4
|
||||||
path: node_modules
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: bun ci
|
||||||
|
|
||||||
- name: Run linting
|
- name: Run linting
|
||||||
run: bun --bun run lint:check
|
run: bun --bun run lint:check
|
||||||
|
|
||||||
format-check:
|
format-check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: install-dependencies
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install bun
|
|
||||||
uses: oven-sh/setup-bun@v2
|
|
||||||
with:
|
|
||||||
bun-version: 1.3.4
|
|
||||||
|
|
||||||
- name: Install node
|
- name: Install node
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: '22.x'
|
node-version: '22.x'
|
||||||
|
|
||||||
- name: Download node_modules artifact
|
- name: Install bun
|
||||||
uses: actions/download-artifact@v4
|
uses: oven-sh/setup-bun@v2
|
||||||
with:
|
with:
|
||||||
name: node_modules
|
bun-version: 1.3.4
|
||||||
path: node_modules
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: bun ci
|
||||||
|
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: bun --bun run format:check
|
run: bun --bun run format:check
|
||||||
|
|||||||
Reference in New Issue
Block a user