-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Thanks to @FjamZoo for reworking the backend to make this all possible.
- Loading branch information
Showing
56 changed files
with
5,292 additions
and
1,601 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
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,61 @@ | ||
name: Main CI | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
name: Build Test | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ui | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Get Commit Range | ||
id: get_commit_range | ||
run: | | ||
if [ "${{ github.event_name }}" == "push" ]; then | ||
echo "commit_range=${{ github.event.before }}...${{ github.sha }}" >> $GITHUB_ENV | ||
else | ||
echo "commit_range=${{ github.event.pull_request.base.sha }}...${{ github.sha }}" >> $GITHUB_ENV | ||
fi | ||
- name: Check for changes in UI directory | ||
id: check_changes | ||
run: | | ||
if git diff --quiet ${{ env.commit_range }} -- ui; then | ||
echo "No changes in UI directory. Skipping step." | ||
echo "skip_step=true" >> $GITHUB_ENV | ||
else | ||
echo "Changes detected in UI directory. Proceeding with step." | ||
echo "skip_step=false" >> $GITHUB_ENV | ||
fi | ||
- name: Install pnpm | ||
if: env.skip_step == 'false' | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
|
||
- name: Setup node environment | ||
if: env.skip_step == 'false' | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
cache: "pnpm" | ||
cache-dependency-path: "ui/pnpm-lock.yaml" | ||
|
||
- name: Install deps | ||
if: env.skip_step == 'false' | ||
run: pnpm install --frozen-lockfile | ||
working-directory: ui | ||
|
||
- name: Try build | ||
if: env.skip_step == 'false' | ||
run: pnpm build | ||
working-directory: ui | ||
env: | ||
CI: true |
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
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
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 |
---|---|---|
|
@@ -19,13 +19,37 @@ jobs: | |
- name: Install ZIP | ||
run: sudo apt install zip | ||
|
||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 9 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
cache: "pnpm" | ||
cache-dependency-path: "ui/pnpm-lock.yaml" | ||
|
||
- name: Install dependencies | ||
run: pnpm i --frozen-lockfile | ||
working-directory: ui | ||
|
||
- name: Run build | ||
run: pnpm build | ||
working-directory: ui | ||
env: | ||
CI: false | ||
|
||
- name: Bundle files | ||
run: | | ||
rm -rf ./.github ./.vscode ./.git | ||
shopt -s extglob | ||
mkdir ./${{ github.event.repository.name }} | ||
cp -r !(${{ github.event.repository.name }}) ${{ github.event.repository.name }} | ||
zip -r ./${{ github.event.repository.name }}.zip ./${{ github.event.repository.name }} | ||
mkdir -p ./temp/${{ github.event.repository.name }} | ||
mkdir -p ./temp/${{ github.event.repository.name }}/ui | ||
cp ./{README.md,LICENSE,fxmanifest.lua} ./temp/${{ github.event.repository.name }} | ||
cp -r ./{client,bridge,server} ./temp/${{ github.event.repository.name }} | ||
cp -r ./ui/public ./temp/${{ github.event.repository.name }}/ui/public | ||
cd ./temp && zip -r ../${{ github.event.repository.name }}.zip ./${{ github.event.repository.name }} | ||
- name: Get App Token | ||
uses: actions/create-github-app-token@v1 | ||
|
Oops, something went wrong.