Skip to content

Commit

Permalink
Merge branch 'master' into LL-186
Browse files Browse the repository at this point in the history
  • Loading branch information
pogi7 authored Jan 12, 2024
2 parents c269a9c + ca73671 commit f758ea1
Show file tree
Hide file tree
Showing 1,277 changed files with 859,074 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Workflow to codecov

name: Run codecov
# Runs on push to any branch
on:
push:
pull_request:
branches:
- master
# Workflow can be triggered manually from the Actions tab
workflow_dispatch:

jobs:
# Run tests
codecov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
timeout-minutes: 1
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# luminosity-led
Control brightness and color of LEDs

[![codecov](https://codecov.io/gh/luminosityleds/server/graph/badge.svg?token=BCWGXLOXNC)](https://codecov.io/gh/luminosityleds/server)

# Install Recommended/Required VSCode Extensions
https://code.visualstudio.com/docs/editor/extension-marketplace#_recommended-extensions
Install all of the VSCode extensions
Expand Down
7 changes: 7 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ services:
env_file: "src/account/.env"
dns:
- "8.8.8.8"
routes:
build: "src/routes/"
command: "npx ts-node github.ts"
ports:
- "4000:4000"
- "8080:8080"
env_file: "src/routes/.env"
# client:
# build: "client/"
# command: "npm start"
Expand Down
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@
"test": "tests"
},
"scripts": {
"test": "react-scripts test"
"test": "react-scripts test",
"ts-coverage": "typescript-coverage-report"
},
"author": "",
"license": "ISC",
"dependencies": {
"jest": "^29.7.0",
"react-scripts": "^5.0.1"
"react-scripts": "^5.0.1",
"express": "^4.18.2",
"typescript-coverage-report": "^0.7.0"
},
"devDependencies": {
"@types/jest": "^29.5.6"
"@types/jest": "^29.5.6",
"@types/node": "^20.10.0"
}
}
15 changes: 15 additions & 0 deletions src/routes/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:latest

WORKDIR /routes

# Copies files from the routes directory
COPY ["github.ts", "routes.ts", "/routes"]
COPY ["package.json", "/routes"]

# Runs npm install using bash shell
RUN ["/bin/bash", "-c", "npm install"]

# Port 4000 is the server port, 8080 is the cors-anywhere port
EXPOSE 4000 8080

CMD ["npx", "ts-node", "github.ts"]
12 changes: 12 additions & 0 deletions src/routes/node_modules/.bin/acorn

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions src/routes/node_modules/.bin/acorn.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions src/routes/node_modules/.bin/acorn.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions src/routes/node_modules/.bin/mime

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions src/routes/node_modules/.bin/mime.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions src/routes/node_modules/.bin/mime.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions src/routes/node_modules/.bin/ts-node

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions src/routes/node_modules/.bin/ts-node-cwd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions src/routes/node_modules/.bin/ts-node-cwd.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions src/routes/node_modules/.bin/ts-node-cwd.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions src/routes/node_modules/.bin/ts-node-esm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions src/routes/node_modules/.bin/ts-node-esm.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions src/routes/node_modules/.bin/ts-node-esm.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions src/routes/node_modules/.bin/ts-node-script

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions src/routes/node_modules/.bin/ts-node-script.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f758ea1

Please sign in to comment.