-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
372 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: build | ||
description: Base build action for the project | ||
runs: | ||
using: composite | ||
steps: | ||
|
||
- name: Install Node.js 18 and setup dependency caching | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
cache: "npm" | ||
|
||
- name: Install dependencies | ||
run: npm install --ignore-scripts --fix-lockfile | ||
shell: bash | ||
|
||
- name: Build changes | ||
run: npm run build | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Build PR preview | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
branches: | ||
- development | ||
|
||
concurrency: | ||
group: preview-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-preview: | ||
name: Build preview | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository 🛎️ | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build 🏗️ | ||
uses: ./.github/actions/build | ||
env: | ||
VITE_APP_ENV: staging | ||
|
||
- name: Upload build files 📤 | ||
uses: sliit-foss/actions/preview-deployments/postbuild@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Clean PR preview | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Close PR"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
close-preview: | ||
name: Close PR preview | ||
runs-on: ubuntu-latest | ||
if: > | ||
github.event.workflow_run.event == 'pull_request' && | ||
github.event.workflow_run.conclusion == 'success' | ||
steps: | ||
- name: Checkout repository 🛎️ | ||
uses: actions/checkout@v3 | ||
|
||
- name: Clean preview 🧹 | ||
uses: sliit-foss/actions/preview-deployments/clean@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Close PR | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
branches: | ||
- development | ||
|
||
jobs: | ||
send-pr-number-to-clean: | ||
name: Record PR number to clean | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Upload PR number 📤 | ||
uses: sliit-foss/actions/preview-deployments/upload-pr-number@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Deploy PR preview | ||
|
||
on: | ||
workflow_run: | ||
workflows: | ||
- Build PR preview | ||
types: | ||
- completed | ||
|
||
jobs: | ||
deploy-preview: | ||
name: Deploy preview | ||
runs-on: ubuntu-latest | ||
if: > | ||
github.event.workflow_run.event == 'pull_request' && | ||
github.event.workflow_run.conclusion == 'success' | ||
steps: | ||
- name: Checkout repository 🛎️ | ||
uses: actions/checkout@v3 | ||
|
||
- name: Deploy preview 🚀 | ||
uses: sliit-foss/actions/preview-deployments/deploy@main | ||
with: | ||
site_domain: csse.mrmihi.live |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: CI prod deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
deploy: | ||
name: Deploy to staging | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository 🛎️ | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build 🏗️ | ||
uses: ./.github/actions/build | ||
env: | ||
build_configuration: production | ||
|
||
- name: Deploy 🚀 | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: ./dist/hon/browser | ||
branch: gh-pages | ||
clean-exclude: preview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Quality Checks | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- development | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
|
||
jobs: | ||
commitlint: | ||
name: Commitlint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository 🛎️ | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run commitlint 🟩 | ||
uses: sliit-foss/actions/quality-checks/commitlint@main | ||
|
||
lint: | ||
name: Enforce ESLint rules | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository 🛎️ | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run linter 📢 | ||
uses: sliit-foss/actions/quality-checks/linter@main | ||
|
||
format: | ||
name: Format code | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository 🛎️ | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run formatter 🧹 | ||
uses: sliit-foss/actions/quality-checks/formatter@main |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.