Skip to content

Commit

Permalink
Merge pull request #360 from ictsc/frontend-bootstrap
Browse files Browse the repository at this point in the history
Frontend bootstrap
  • Loading branch information
tosuke authored Sep 9, 2024
2 parents 7e4290a + 3c51510 commit 6303ace
Show file tree
Hide file tree
Showing 354 changed files with 17,533 additions and 13,389 deletions.
270 changes: 0 additions & 270 deletions .github/workflows/e2e.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/frontend-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Frontend CI

on:
push:
branches: [main]
pull_request:
paths:
- .github/{workflows,actions}/**/*
- frontend/**/*

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
working-directory: frontend

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
package_json_file: frontend/package.json
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: frontend/pnpm-lock.yaml
- name: Install dependencies
run: pnpm install

- name: Lint
run: pnpm run --recursive --parallel --aggregate-output lint
22 changes: 21 additions & 1 deletion .github/workflows/proto-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ jobs:
uses: actions/checkout@v4
with:
token: ${{ steps.token.outputs.token }}
# Setup backend
- name: Setup Go
uses: actions/setup-go@v5
with:
Expand All @@ -110,8 +111,27 @@ jobs:
uses: arduino/setup-task@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Generate
# Setup frontend
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
package_json_file: frontend/package.json
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: frontend/pnpm-lock.yaml
- name: Install dependencies
working-directory: frontend
run: pnpm install
# Generate
- name: Generate backend
run: task generate
- name: Generate frontend
working-directory: frontend
run: pnpm generate:proto
- name: Push
id: push
uses: stefanzweifel/git-auto-commit-action@v5
Expand Down
1 change: 1 addition & 0 deletions dev/cspell/cspell.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ ignorePaths:
- "**/go.sum"
- "**/local-modules"
- "**/backend/internal/proto"
- "**/frontend/packages/proto"
3 changes: 3 additions & 0 deletions dev/cspell/dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ gofumpt
goimports
GOPROXY
healthcheck
headlessui
ictsc
ictscc
ictscr
Expand Down Expand Up @@ -56,6 +57,7 @@ protobuf
protoc
protocolbuffers
protovalidate
reacthooks
signin
signout
smallint
Expand All @@ -66,6 +68,7 @@ testid
tinyint
Tressa
trimpath
tseslint
Upsert
uptrace
usecase
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

## 構成

- `octavio`: 競技者用ダッシュボード
- `duardo`: 運営用ダッシュボード
- `packages/competition`: 競技者用ダッシュボード
- `packages/admin`: 運営用ダッシュボード

## 開発方法

Expand All @@ -29,4 +29,4 @@ pnpm dev
```bash
cd ictsc-outlands/frontend
pnpm generate
```
```
1 change: 0 additions & 1 deletion frontend/octavio/local-modules/zenn-editor
Submodule zenn-editor deleted from 2d224f
Loading

0 comments on commit 6303ace

Please sign in to comment.