mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-18 17:53:29 +00:00
Update status check names (#822)
## Description: Github requires unique display names for each required status check. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors --------- Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
This commit is contained in:
co-authored by
Scott Anderson
parent
b4c0a5b0d2
commit
9b0ddc7f77
@@ -1,11 +1,15 @@
|
|||||||
name: 🧪 CI
|
name: 🧪 CI
|
||||||
on: [push, pull_request]
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
permissions: {}
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: 🏗️ Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@@ -23,7 +27,7 @@ jobs:
|
|||||||
path: out/index.html
|
path: out/index.html
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
test:
|
test:
|
||||||
name: Test
|
name: 🔬 Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@@ -36,3 +40,27 @@ jobs:
|
|||||||
node-version: 20
|
node-version: 20
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm test
|
- run: npm test
|
||||||
|
|
||||||
|
eslint:
|
||||||
|
name: 🔍 ESLint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: "20"
|
||||||
|
cache: "npm"
|
||||||
|
- run: npm ci
|
||||||
|
- run: npx eslint --format gha
|
||||||
|
|
||||||
|
prettier:
|
||||||
|
name: 🎨 Prettier
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: "20"
|
||||||
|
cache: "npm"
|
||||||
|
- run: npm ci
|
||||||
|
- run: npx prettier --check .
|
||||||
|
|||||||
@@ -41,16 +41,9 @@ jobs:
|
|||||||
# Don't deploy on push if this is a fork
|
# Don't deploy on push if this is a fork
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' || github.repository == 'openfrontio/OpenFrontIO' }}
|
if: ${{ github.event_name == 'workflow_dispatch' || github.repository == 'openfrontio/OpenFrontIO' }}
|
||||||
# Use different logic based on event type
|
# Use different logic based on event type
|
||||||
name: ${{
|
name: Deploy to ${{ inputs.target_domain || 'openfront.dev' }}
|
||||||
github.event_name == 'push'
|
|
||||||
&& (github.ref_name == 'main' && 'openfront.dev'
|
|
||||||
|| format('{0}.openfront.dev', github.ref_name))
|
|
||||||
|| inputs.target_subdomain && format('{0}.{1}', inputs.target_subdomain, inputs.target_domain)
|
|
||||||
|| inputs.target_domain
|
|
||||||
|| 'openfront.dev'
|
|
||||||
}}
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: ${{ inputs.target_domain == 'openfront.io' && 'prod' || '' }}
|
environment: ${{ inputs.target_domain == 'openfront.io' && 'prod' || 'staging' }}
|
||||||
env:
|
env:
|
||||||
DOMAIN: ${{ inputs.target_domain || 'openfront.dev' }}
|
DOMAIN: ${{ inputs.target_domain || 'openfront.dev' }}
|
||||||
SUBDOMAIN: ${{ github.event_name == 'push' && github.ref_name || inputs.target_subdomain || 'main' }}
|
SUBDOMAIN: ${{ github.event_name == 'push' && github.ref_name || inputs.target_subdomain || 'main' }}
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
name: 🔍 ESLint
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
permissions: {}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
eslint:
|
|
||||||
name: Check
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: "20"
|
|
||||||
cache: "npm"
|
|
||||||
- run: npm ci
|
|
||||||
- run: npx eslint --format gha
|
|
||||||
@@ -8,7 +8,7 @@ permissions: {}
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validate-description:
|
validate-description:
|
||||||
name: Check
|
name: Validate Description
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/github-script@v7
|
- uses: actions/github-script@v7
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
name: 🎨 Prettier
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
permissions: {}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
prettier:
|
|
||||||
name: Check
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: "20"
|
|
||||||
cache: "npm"
|
|
||||||
- run: npm ci
|
|
||||||
- run: npx prettier --check .
|
|
||||||
Reference in New Issue
Block a user