Skip to content

Commit

Permalink
frontend(ci): new build system
Browse files Browse the repository at this point in the history
- changed `electron` to `desktop`
- update `./dev` commands

```bash
    gen                 Check all the generated code is up to date. Otherwise run the code generation process to fix it.
    run-desktop         Run frontend desktop app for development.
    build-desktop       Builds the desktop app for the current platform.
    validate-desktop    Formats, Validates and test the desktop app
    run-site            Run sites app for development.
    build-site          Build site app for production.
    validate-site       Formats, Validates and test the site app
    run-backend         Build and run mintterd binary for the current platform.
    build-backend       Build mintterd binary for the current platform.
    run-gw-backend      Build and run backend for mintter web gateway.
    ping-p2p            Execute ping utility to check visibility.
    release             Cut a new release.
```

- new release workflow (scoped to the release branch until I talk with @burdiyan about the tag workflow
- new validate frontend code workflows (`validate-site.yml` and `validate-desktop.yml`)
- lint setup (no real linting yet)
- test setup (no real tests yet)
- no Tauri code anymore
  • Loading branch information
horacioh committed Aug 17, 2023
1 parent 0611e9b commit 573b1fb
Show file tree
Hide file tree
Showing 154 changed files with 3,539 additions and 21,633 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ git config pull.rebase true
use nix --max-jobs auto
watch_file shell.nix build/nix/**/*.nix

export ESLINT_USE_FLAT_CONFIG=true
export TAMAGUI_TARGET="web"
export NEXT_PUBLIC_GRPC_HOST="https://gateway.mintter.com"
# export NEXT_PUBLIC_GRPC_HOST="http://localhost:56001"
Expand Down
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dist
out
frontend/*.d.ts
types/
frontend/packages/shared/src/client/.generated
frontend/packages/ui/dist
16 changes: 0 additions & 16 deletions .github/PULL_REQUEST_TEMPLATE/pull_request_template.md

This file was deleted.

78 changes: 78 additions & 0 deletions .github/actions/ci-setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: CI setup

description: |
Sets up the CI environment for the project
inputs:
matrix-os:
description: 'The Current OS'
required: true
# matrix-target:
# description: "The Current Target"
# required: true
# matrix-goarch:
# description: "The Current Go Arch"
# required: true


runs:
using: 'composite'

steps:
- name: 'Setup Go'
uses: actions/setup-go@v3
with:
go-version: 1.19

- name: 'Install native packages'
if: inputs.matrix-os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libayatana-appindicator3-dev librsvg2-dev patchelf
shell: bash

- name: Setup cache Ubuntu
uses: actions/cache@v3
if: inputs.matrix-os == 'ubuntu-latest'
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ inputs.matrix-os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ inputs.matrix-os }}-go-
- name: Setup cache Macos
uses: actions/cache@v3
if: inputs.matrix-os == 'macos-latest'
with:
path: |
~/Library/Caches/go-build
~/go/pkg/mod
key: ${{ inputs.matrix-os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ inputs.matrix-os }}-go-
- name: Setup cache Windows
uses: actions/cache@v3
if: inputs.matrix-os == 'windows-latest'
with:
path: |
~\AppData\Local\go-build
~\go\pkg\mod
key: ${{ inputs.matrix-os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ inputs.matrix-os }}-go-
- name: Install Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'

- name: Install Frontend Dependencies
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
run: |
yarn
shell: bash
44 changes: 0 additions & 44 deletions .github/workflows/audit-javascript.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/audit-rust.yml

This file was deleted.

Loading

0 comments on commit 573b1fb

Please sign in to comment.