Skip to content
Merged
Show file tree
Hide file tree
Changes from 52 commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
f5cb23b
Add plugin .gitignore to exclude build artifacts and log files
thomas-senechal Jan 7, 2025
b30f28a
Add PluginAPI to int/api with plugin registration and station middleware
thomas-senechal Jan 7, 2025
8ab5e76
Add initial plugin implementation
thomas-senechal Jan 7, 2025
a89ecce
Add plugin manifest file and favicon
thomas-senechal Jan 7, 2025
5de4a88
Add Taskfile for plugin
thomas-senechal Jan 7, 2025
ae264eb
Add README.md for DeWeb Station Plugin with setup and installation in…
thomas-senechal Jan 7, 2025
4021258
Add basic plugin frontend
thomas-senechal Mar 12, 2025
6ecdb05
Add homePage serving from plugin
thomas-senechal Mar 12, 2025
59edd73
Remove useless commands for moving zip files in Taskfile.yml
thomas-senechal Mar 12, 2025
73bc971
Add GitHub Actions workflow to build and upload plugin artifacts for …
thomas-senechal Mar 12, 2025
6ee5656
Add working-directory input to GitHub Actions install action and upda…
thomas-senechal Mar 12, 2025
7a8b8d9
Improve plugin favicon
thomas-senechal Mar 12, 2025
b7def0d
Add default route handling
thomas-senechal Mar 12, 2025
4db1aff
Remove unnecessary blank line in configurePluginAPI function
thomas-senechal Mar 12, 2025
d61d5fd
Update GitHub Actions workflow to include additional plugin files in …
thomas-senechal Mar 12, 2025
8b7b57f
Update ubuntu to 22.04 in build workflow
thomas-senechal Mar 12, 2025
0933d61
Fix artifact naming and path in GitHub Actions build workflow
thomas-senechal Mar 12, 2025
bef2f76
Add network info fetching and enhance UI in App component
thomas-senechal Mar 13, 2025
012e90a
Remove useless public/ from favicon path in home index.html
thomas-senechal Mar 13, 2025
c2f0d09
Set mainnet as default for deweb plugin
thomas-senechal Mar 13, 2025
2429531
Fix artifact naming convention in GitHub Actions build workflow
thomas-senechal Mar 13, 2025
51dabc3
Add config file handling for DeWeb plugin
thomas-senechal Mar 14, 2025
36ef4e7
Apply review suggestions
thomas-senechal Mar 17, 2025
fda011c
Add missing font
thomas-senechal Mar 18, 2025
9696c00
Apply UI/UX review suggestions
thomas-senechal Mar 18, 2025
07e5d4e
Update DeWeb plugin home page README.md
thomas-senechal Mar 18, 2025
ea8c2d2
Refacto workflows (#261)
thomas-senechal Mar 20, 2025
21fc0cf
Update plugin go.mod
thomas-senechal Apr 1, 2025
a3023a5
Update golangci-lint version to v1.64 in GitHub workflows
thomas-senechal Apr 1, 2025
7ac05df
Move cache init at API init
thomas-senechal Apr 3, 2025
51b59ee
Update plugin config structure to use CacheConfig object
thomas-senechal Apr 3, 2025
98e09ad
Fix misnamed variables in config
thomas-senechal Apr 3, 2025
70c5729
Add example configuration file for DeWeb plugin
thomas-senechal Apr 3, 2025
b556c5f
audit fix server pages and plugin home
thomas-senechal Apr 3, 2025
0a9e69d
Fix plugin build
thomas-senechal Apr 3, 2025
deb6fb7
Update plugin/config.yaml.example
thomas-senechal Apr 4, 2025
565fd9a
Fix PluginDir not returning errors during stat if not IsNotExist
thomas-senechal Apr 4, 2025
45d10dd
Remove duplicated cacheKeyType and cacheKey constants from API defini…
thomas-senechal Apr 22, 2025
a017228
Add command-line flags for configuration and log file paths; enhance …
thomas-senechal Apr 24, 2025
7cf2361
Add network information to DeWebInfo endpoint
thomas-senechal Apr 29, 2025
6caab12
Add Plugin API spec and generated files
thomas-senechal Apr 29, 2025
05e58fd
Update plugin frontend to show server status and build output to plug…
thomas-senechal Apr 29, 2025
0c51b9f
Add plugin API implem and configuration management
thomas-senechal Apr 29, 2025
afaeedd
Remove now useless old plugin config code and example file
thomas-senechal Apr 29, 2025
4adf0af
Add build-server task and update file copy commands to add the server…
thomas-senechal Apr 29, 2025
bbf9fe2
Add mkdir command to create build directory in Taskfile.yml
thomas-senechal Apr 29, 2025
f6ac1b6
Refactor workflows for building and releasing server and plugin
thomas-senechal May 5, 2025
ae67fe0
Fix wrong path for downloaded artifacts in plugin workflow
thomas-senechal May 5, 2025
8209971
Use Ubuntu to build windows
thomas-senechal May 5, 2025
340dcb2
Update server command to include --accept-disclaimer flag
thomas-senechal May 5, 2025
fd9330b
Remove deprecated PluginAPI implementation from the server API package.
thomas-senechal May 7, 2025
545b84a
Remove useless helloworld plugin from server go mod
thomas-senechal May 7, 2025
9940db3
Add private kill function and improve error handling at start in serv…
thomas-senechal May 14, 2025
5ab3d3e
Update plugin manifest to reflect new name and description, and chang…
thomas-senechal May 15, 2025
9581c5c
Update favicon and manifest description, and adjust environment paths…
thomas-senechal May 15, 2025
e9a85eb
Update title in index.html to and update favicon for plugin frontend
thomas-senechal May 15, 2025
6ee6e2e
Add AWS S3 upload step and configure AWS credentials in release workflow
thomas-senechal May 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 21 additions & 70 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,78 +1,29 @@
name: build and upload artifacts
name: Build Server and Plugin

on:
push:
branches: [main]
paths:
- 'plugin/**'
- 'server/**'
- '.github/workflows/**'
- '.github/actions/**'
pull_request:
paths:
- 'plugin/**'
- 'server/**'
- '.github/workflows/**'
- '.github/actions/**'
workflow_dispatch:
workflow_call:
inputs:
tag_name:
type: string
description: "The tag name of the release without v prefix"

env:
VERSION: ${{ inputs.tag_name }}

jobs:
build:
name: build and upload artifacts
strategy:
matrix:
include:
- os: windows-2022
arch: amd64
target: windows
ext: .exe
- os: ubuntu-22.04
arch: amd64
target: linux
- os: ubuntu-22.04
arch: arm64
target: linux
- os: macos-13
arch: amd64
target: darwin
- os: macos-14
arch: arm64
target: darwin

runs-on: ${{ matrix.os }}

defaults:
run:
working-directory: ./server

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: installing dependencies
uses: ./.github/actions/install
with:
os: ${{ matrix.os }}
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Check if VERSION exists
shell: bash
id: check_version
run: |
if [ ! -z "${{ env.VERSION }}" ]; then
echo "PRODUCTION=true" >> $GITHUB_ENV
fi

- name: Build Server
shell: bash
run: task build
env:
OS: ${{ matrix.target }}
ARCH: ${{ matrix.arch }}

- name: Rename Server artifact
run: mv build/deweb-server${{ matrix.ext }} build/deweb-server_${{ matrix.target }}_${{ matrix.arch }}${{ matrix.ext }}

- name: Upload Server artifact
uses: actions/upload-artifact@v4
with:
name: deweb-server_${{ matrix.target }}_${{ matrix.arch }}
path: server/build/deweb-server_${{ matrix.target }}_${{ matrix.arch }}${{ matrix.ext }}
build-server:
name: Build server
uses: ./.github/workflows/server.yml
secrets: inherit

build-plugin:
name: Build plugin
needs: build-server
uses: ./.github/workflows/plugin.yml
secrets: inherit
50 changes: 25 additions & 25 deletions .github/workflows/tests.yml → .github/workflows/cli.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
name: tests
name: CLI

on:
push:
branches: [main]
paths:
- 'cli/**'
- '.github/workflows/cli.yml'
pull_request:
workflow_call:
paths:
- 'cli/**'
- '.github/workflows/cli.yml'
workflow_dispatch:

jobs:
test-server:
runs-on: ubuntu-22.04

lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./server

working-directory: ./cli
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: installing dependencies
uses: ./.github/actions/install
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Run unit tests
run: go test ./...
node-version: 20
cache: "npm"
cache-dependency-path: ./cli/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run code formatting and linting
run: npm run fmt:check

test-cli:
test:
runs-on: ubuntu-22.04

defaults:
run:
working-directory: ./cli

steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: ./server/pages/package-lock.json
cache-dependency-path: ./cli/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run unit tests
run: npm test

functional-test-cli:
functional-test:
runs-on: ubuntu-22.04

defaults:
run:
working-directory: ./cli

steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: ./server/pages/package-lock.json
cache-dependency-path: ./cli/package-lock.json
- name: Install dependencies
run: npm ci
- name: Setup wallet
Expand All @@ -76,4 +76,4 @@ jobs:
npm run build
npm run start -- upload -y --wallet ./wallet_fullpower.yaml --password $WALLET_TEST_PASSWORD ../smart-contract/src/e2e/test-project/dist
env:
WALLET_TEST_PASSWORD: ${{ secrets.WALLET_TEST_PASSWORD }}
WALLET_TEST_PASSWORD: ${{ secrets.WALLET_TEST_PASSWORD }}
76 changes: 0 additions & 76 deletions .github/workflows/lint.yml

This file was deleted.

Loading