Skip to content

Commit de0acf4

Browse files
authored
feat: Stabilize coverage web app and add auto sem versioning (#44)
1 parent 17d0d04 commit de0acf4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+17704
-25237
lines changed

.dockerignore

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# Python bytecode and cache
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
*.so
6+
.Python
7+
.pytest_cache/
8+
.coverage
9+
htmlcov/
10+
.tox/
11+
.nox/
12+
.hypothesis/
13+
.coverage.*
14+
coverage.xml
15+
*.cover
16+
17+
# Virtual environments
18+
venv/
19+
env/
20+
ENV/
21+
virtualenv/
22+
.env
23+
.venv
24+
env.bak/
25+
venv.bak/
26+
27+
# Distribution / packaging
28+
dist/
29+
build/
30+
*.egg-info/
31+
*.egg
32+
MANIFEST
33+
.installed.cfg
34+
eggs/
35+
develop-eggs/
36+
downloads/
37+
lib/
38+
lib64/
39+
parts/
40+
sdist/
41+
var/
42+
wheels/
43+
44+
# Version control
45+
.git
46+
.gitignore
47+
.gitattributes
48+
.github/
49+
50+
# IDE and editors
51+
.idea/
52+
.vscode/
53+
*.swp
54+
*.swo
55+
*~
56+
.DS_Store
57+
*.sublime-*
58+
.project
59+
.pydevproject
60+
.settings
61+
.spyderproject
62+
.spyproject
63+
.ropeproject
64+
65+
# Logs
66+
logs/
67+
*.log
68+
pip-log.txt
69+
pip-delete-this-directory.txt
70+
71+
# Docker specific
72+
Dockerfile*
73+
docker-compose*
74+
.dockerignore
75+
76+
# Documentation
77+
docs/
78+
*.md
79+
README*
80+
LICENSE
81+
AUTHORS
82+
83+
# Project specific
84+
.pytest_cache/
85+
.mypy_cache/
86+
.ruff_cache/
87+
.ipynb_checkpoints/
88+
notebooks/
89+
tests/
90+
.flake8
91+
setup.cfg
92+
pyproject.toml
93+
requirements-dev.txt
94+
tox.ini
95+
96+
# Keep essential files
97+
!requirements.txt
98+
!setup.py
99+
!pyproject.toml

.env

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
PUBLIC_URL=.
2-
PORT=3002
1+
VITE_PORT=3000
2+
VITE_ENV_API_URL=localhost
3+
EXPOSED_PORT=3002

.github/workflows/check.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,19 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v3
1616

17-
- uses: actions/setup-node@v3
17+
- uses: actions/setup-node@v4
1818
with:
1919
node-version-file: ".node-version"
20+
cache: "npm"
21+
22+
- name: Set up dependencies
23+
run: sudo ./scripts/setup.sh
2024

2125
- name: Install Node dependencies
2226
run: npm ci
2327

2428
- name: Check format
2529
run: npm run format-check
30+
31+
- name: Check build
32+
run: npm run build

.github/workflows/publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
name: Publish Site
55

66
on:
7-
push:
8-
branches: [main]
7+
workflow_dispatch:
98

109
jobs:
1110
build:

.github/workflows/release.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
release:
8+
runs-on: ubuntu-latest
9+
10+
permissions:
11+
contents: write
12+
packages: write
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
persist-credentials: false
19+
20+
- name: Set up Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '22'
24+
25+
- name: Install dependencies
26+
run: npm install --include=dev
27+
28+
- name: Run semantic-release
29+
env:
30+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
31+
GIT_AUTHOR_EMAIL: ${{ vars.SCN_GIT_EMAIL }}
32+
GIT_AUTHOR_NAME: ${{ vars.SCN_GIT_NAME }}
33+
GIT_COMMITTER_EMAIL: ${{ vars.SCN_GIT_EMAIL }}
34+
GIT_COMMITTER_NAME: ${{ vars.SCN_GIT_NAME }}
35+
REPO_OWNER: "Local-Connectivity-Lab"
36+
REPO_NAME: "ccn-coverage-docker"
37+
TARGET_ARTIFACT_NAME: "ccn-coverage-backup-helper"
38+
run: npx semantic-release

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "models/ccn-coverage-models"]
2+
path = models/ccn-coverage-models
3+
url = https://github.com/Local-Connectivity-Lab/ccn-coverage-models.git

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.15.0
1+
22.14.0

.prettierrc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"tabWidth": 2,
3+
"printWidth": 80,
4+
"singleQuote": true,
5+
"jsxSingleQuote": true,
6+
"bracketSpacing": true,
7+
"arrowParens": "avoid",
8+
"trailingComma": "all"
9+
}

.releaserc

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"branches": [
3+
"main"
4+
],
5+
"plugins": [
6+
[
7+
"@semantic-release/commit-analyzer",
8+
{
9+
"preset": "angular",
10+
"releaseRules": [
11+
{
12+
"type": "feat",
13+
"release": "minor"
14+
},
15+
{
16+
"type": "fix",
17+
"release": "patch"
18+
},
19+
{
20+
"type": "refactor",
21+
"release": "patch"
22+
},
23+
{
24+
"type": "perf",
25+
"release": "patch"
26+
},
27+
{
28+
"type": "build",
29+
"release": "patch"
30+
},
31+
{
32+
"type": "ci",
33+
"release": "patch"
34+
},
35+
{
36+
"type": "chore",
37+
"release": "patch"
38+
},
39+
{
40+
"type": "docs",
41+
"release": "patch"
42+
},
43+
{
44+
"type": "style",
45+
"release": "patch"
46+
}
47+
]
48+
}
49+
],
50+
"@semantic-release/release-notes-generator",
51+
"@semantic-release/git",
52+
"@semantic-release/github"
53+
],
54+
"prepare": [
55+
"@semantic-release/changelog",
56+
"./scripts/publish-version.js",
57+
"@semantic-release/git"
58+
]
59+
}

0 commit comments

Comments
 (0)