Skip to content
Closed

Dev #698

Show file tree
Hide file tree
Changes from all commits
Commits
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
34 changes: 17 additions & 17 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
.git
.gitignore

node_modules

client/node_modules
client/npm-debug.log

server/node_modules
server/npm-debug.log
server/img
server/assets_cache
server/build
server/docs
server/data.db

rest-api/node_modules
.git
.gitignore
node_modules
client/node_modules
client/npm-debug.log
server/node_modules
server/npm-debug.log
server/img
server/assets_cache
server/build
server/docs
server/data.db
rest-api/node_modules
rest-api/npm-debug.log
20 changes: 10 additions & 10 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
client/tailwind.config.js
client/webpack.config.js
client/dist
client/public

server/jest.config.js
server/scripts
server/build

docs/webpack.config.js
client/tailwind.config.js
client/webpack.config.js
client/dist
client/public
server/jest.config.js
server/scripts
server/build
docs/webpack.config.js
26 changes: 13 additions & 13 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# These are supported funding model platforms

github: bonukai
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
# These are supported funding model platforms
github: bonukai
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
54 changes: 27 additions & 27 deletions .github/workflows/api_documentation.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
name: Build and Deploy API documentation
on:
push:
branches:
- 'main'
paths:
- 'server/openapi.json'
jobs:
build-and-deploy:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2

- name: Install and Build 🔧
run: |
npm ci --prefix docs
npm run build --prefix docs

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.2.2
with:
branch: gh-pages
folder: docs/dist
name: Build and Deploy API documentation
on:
push:
branches:
- 'main'
paths:
- 'server/openapi.json'
jobs:
build-and-deploy:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install and Build 🔧
run: |
npm ci --prefix docs
npm run build --prefix docs
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.2.2
with:
branch: gh-pages
folder: docs/dist
57 changes: 31 additions & 26 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
name: Codecov

on: [push]

jobs:
build:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-22.04
name: Codecov
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 22
- run: npm ci
- run: npm run test:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: server/coverage/clover.xml
verbose: true
name: Codecov

on:
push:
branches:
- main
- dev
pull_request:

jobs:
build:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-22.04
name: Codecov
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 22
- run: npm ci
- run: npm run test:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: server/coverage/clover.xml
verbose: true
54 changes: 27 additions & 27 deletions .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
name: Crowdin Action

on:
push:
branches: [ main ]
paths:
- '**/translation.json'
jobs:
synchronize-with-crowdin:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: crowdin action
uses: crowdin/github-action@1.4.6
with:
upload_translations: true
download_translations: false
config: crowdin_github_action.yml
env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
name: Crowdin Action
on:
push:
branches: [main]
paths:
- '**/translation.json'
jobs:
synchronize-with-crowdin:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: crowdin action
uses: crowdin/github-action@2
with:
upload_translations: true
download_translations: false
config: crowdin_github_action.yml
env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
48 changes: 24 additions & 24 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
name: Update demo website

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: update_demo_website
cancel-in-progress: true
steps:
- uses: actions/checkout@v2
- run: |
mkdir .ssh
echo "${{ secrets.VPS_PRIVATE_KEY }}" > key
chmod 700 key
ssh -o "StrictHostKeyChecking no" -i key ${{ secrets.VPS_LOGIN }} "
sudo docker-compose up --build --force-recreate --detach
sudo docker system prune --all --force
"
rm key
name: Update demo website
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: update_demo_website
cancel-in-progress: true
steps:
- uses: actions/checkout@v2
- run: |
mkdir .ssh
echo "${{ secrets.VPS_PRIVATE_KEY }}" > key
chmod 700 key
ssh -o "StrictHostKeyChecking no" -i key ${{ secrets.VPS_LOGIN }} "
sudo docker-compose up --build --force-recreate --detach
sudo docker system prune --all --force
"
rm key
92 changes: 46 additions & 46 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
name: Docker build

on: "workflow_dispatch"

jobs:
release:
name: Docker build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
- name: Get version
uses: actions/github-script@v6
id: version
with:
result-encoding: string
script: |
try {
const fs = require('fs');
const jsonString = fs.readFileSync('./server/package.json');
const packageJson = JSON.parse(jsonString);
return packageJson.version;
} catch(err) {
core.error("Error while reading or parsing the JSON");
core.setFailed(err);
}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v8.1.5
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Publish to Docker Hub
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: bonukai/mediatracker:${{ steps.version.outputs.result }},bonukai/mediatracker:unstable,bonukai/mediatracker:latest
name: Docker build
on: 'workflow_dispatch'
jobs:
release:
name: Docker build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
- name: Get version
uses: actions/github-script@v6
id: version
with:
result-encoding: string
script: |
try {
const fs = require('fs');
const jsonString = fs.readFileSync('./server/package.json');
const packageJson = JSON.parse(jsonString);
return packageJson.version;
} catch(err) {
core.error("Error while reading or parsing the JSON");
core.setFailed(err);
}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v8.1.5
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Publish to Docker Hub
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: dnlwttnbrg/mediatracker-plus:${{ steps.version.outputs.result }},dnlwttnbrg/mediatracker-plus:latest
Loading