Skip to content

Commit 9f595cc

Browse files
committed
Initial commit
0 parents  commit 9f595cc

File tree

6 files changed

+92
-0
lines changed

6 files changed

+92
-0
lines changed

.github/workflows/cd-client.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CD (client)
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
defaults:
11+
run:
12+
working-directory: ./topick/client
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
submodules: recursive
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: 18.x
21+
cache: npm
22+
cache-dependency-path: ./topick/client/package-lock.json
23+
- name: Install dependencies
24+
run: |
25+
npm ci
26+
- name: Build
27+
run: |
28+
npm run build
29+
cp ./dist/index.html ./dist/404.html
30+
- name: Deploy
31+
uses: peaceiris/actions-gh-pages@v3.6.1
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
publish_branch: gh-pages
35+
publish_dir: ./topick/client/dist
36+
allow_empty_commit: false
37+
keep_files: false
38+
force_orphan: true
39+
cname: <ENV>.topick.fyi

.github/workflows/ci.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
strategy:
14+
matrix:
15+
app:
16+
- client
17+
- server
18+
runs-on: ubuntu-latest
19+
defaults:
20+
run:
21+
working-directory: ./topick/${{ matrix.app }}
22+
steps:
23+
- uses: actions/checkout@v3
24+
with:
25+
submodules: recursive
26+
- uses: actions/setup-node@v3
27+
with:
28+
node-version: 18.x
29+
cache: npm
30+
cache-dependency-path: ./topick/${{ matrix.app }}/package-lock.json
31+
- name: Setup
32+
run: ./scripts/setup.sh
33+
- name: Build
34+
run: ./scripts/build.sh
35+
- name: Unit tests
36+
run: ./scripts/unit-test.sh
37+
- name: Integration tests
38+
run: ./scripts/integration-test.sh

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "topick"]
2+
path = topick
3+
url = git@github.com:ExoKomodo/topick.git
4+
branch = main

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<ENV>.topick.fyi

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Topick - <ENV>
2+
3+
<ENV> environment for Topick, overriding the configuration for Topick and deploys it to <ENV>
4+
5+
## Important Links
6+
7+
- [Repository](https://github.com/ExoKomodo/topick-<ENV>)
8+
- [Topick UI](https://<ENV>.topick.fyi)
9+

topick

Submodule topick added at 9733bf4

0 commit comments

Comments
 (0)