Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
3eedf7b
add deploy to dev
digitalsadhu Feb 21, 2023
90215c5
update canvas and fetch
digitalsadhu Feb 21, 2023
dc63709
update deps
digitalsadhu Feb 21, 2023
954b134
convert codebase to esm
digitalsadhu Feb 21, 2023
77147a6
code fixes
digitalsadhu Feb 21, 2023
76e66ef
update visual snapshot
digitalsadhu Feb 21, 2023
fd0b002
fixes
digitalsadhu Feb 21, 2023
be4906f
deploy node v18
digitalsadhu Feb 21, 2023
17e4212
update test runner
digitalsadhu Feb 21, 2023
d47e793
add package.json to upload
digitalsadhu Feb 21, 2023
5131f0f
add logging
digitalsadhu Feb 21, 2023
86cd5be
remove /default/otfbm from path
digitalsadhu Feb 22, 2023
04d392a
log entire error
digitalsadhu Feb 22, 2023
653f088
fix syntax error
digitalsadhu Feb 22, 2023
2d213d2
Updating npm libraries and fixing font issue
patpluspun Oct 19, 2023
7789f54
Updating test command
patpluspun Oct 20, 2023
2b66eb3
Adding grid axis on all sides
patpluspun Oct 30, 2023
0b269b8
Autoformatting
patpluspun Oct 30, 2023
20537f0
Updating test snapshots
patpluspun Oct 30, 2023
54663d1
Using ubuntu-latest for test runner cuz why not?
patpluspun Oct 30, 2023
c616070
Skipping integration tests until we can figure this thing out
patpluspun Nov 1, 2023
b05e532
Skipping integration tests on dev deploy job too
patpluspun Nov 1, 2023
fa23601
Skipping integration tests on deploy job
patpluspun Nov 1, 2023
b86058c
Linting and updating deprecated methods
patpluspun Nov 25, 2023
b0d6857
Added {"user-agent": "curl/8.1.1"} to help with the 429 - api limit e…
Corvux89 Mar 12, 2024
f3abc0b
Revert "Linting and updating deprecated methods"
patpluspun Apr 6, 2024
3b45b90
Dunno if this needs ignored, but it will if we ever upgrade tap
patpluspun Apr 6, 2024
980d3ef
Fix deprecated method response.buffer() to response.arrayBuffer()
patpluspun Apr 6, 2024
7cf519d
Maybe a fix
patpluspun Apr 7, 2024
e58b1c4
Fixed broken images on deprecated buffer method
patpluspun Apr 26, 2024
8e7aab7
Updating deprecated method argument
patpluspun Apr 27, 2024
e39f1cf
Adding a damn try/catch to the background
patpluspun Apr 27, 2024
60f38d2
Updating dev deploy workflow
patpluspun Apr 27, 2024
7c42b3a
Updating prod deploy script and shutting zip up in the console
patpluspun Apr 27, 2024
7b4e866
More cleanup on workflows
patpluspun Apr 27, 2024
2804e4b
Updating everything to node 20 cuz why not?
patpluspun Apr 27, 2024
156cb8d
Making sure curl headers aren't breaking things
patpluspun Apr 27, 2024
fb5a0e2
A bit more useful error handling
patpluspun May 11, 2024
f8fe89a
Using --save-dev for fastify
patpluspun Jan 26, 2025
49f2c5c
Updating aws-sdk to v3
patpluspun Nov 20, 2025
d5fc09b
Updating CI with new node version
patpluspun Nov 20, 2025
d3d65a5
Using ubuntu-latest as test runner
patpluspun Nov 20, 2025
3fed243
Updating tests to remove --no-cov
patpluspun Nov 20, 2025
0c467cd
Adding correct hyphens for test coverage
patpluspun Nov 20, 2025
01fd9fb
Adding the transparency option back to overlays from master branch
patpluspun Nov 20, 2025
9f55695
Updating other CI files to use node 22
patpluspun Nov 20, 2025
31f82d1
Updating test params to get non zero exit code
patpluspun Nov 20, 2025
2140191
Updating test params with --allow-incomplete-coverage
patpluspun Nov 20, 2025
90f33ec
Trying the 'all three flags' method; --disable-coverage --allow-incom…
patpluspun Nov 20, 2025
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
27 changes: 14 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@ name: CI
on:
push:
branches:
- '*'
- '!master'
- "*"
- "!master"
jobs:
test:
runs-on: macos-latest
functional_tests:
name: Functional Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup node env
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm install
- run: npm run test
env:
CI: true
- uses: actions/checkout@v4
- name: Setup node env
uses: actions/setup-node@v4
with:
node-version: 22.x
- run: npm install
- run: npm run test:unit
env:
CI: true
48 changes: 48 additions & 0 deletions .github/workflows/lambda-deploy-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Deploy to Lambda Dev
on:
push:
branches:
- development
jobs:
run_tests:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup node env
uses: actions/setup-node@v4
with:
node-version: 22.x
- run: npm install
- run: npm run test:unit
env:
CI: true
deploy_source:
name: Deploy to Lambda Dev
needs: run_tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: npm install and build
run: |
npm ci
npm prune --production
env:
CI: true
- name: zip
uses: montudor/action-zip@v1
with:
args: zip -qq -r ./app.zip board.js package.json draw-canvas.js draw-error.js effects fonts grid.js icon.js index.js input-parser.js line.js node_modules options.js overlay.js overlays parsers renderer room.js styles.css token.js 5xx.jpg missing-token.jpg
- name: default deploy
uses: appleboy/lambda-action@master
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: us-west-2
s3_bucket: otfbm-deploy-dev
function_name: otfbm-dev
zip_file: app.zip
34 changes: 17 additions & 17 deletions .github/workflows/lambda-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,37 @@ on:
jobs:
test:
name: run tests
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup node env
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm install
- run: npm run test
env:
CI: true
- uses: actions/checkout@v4
- name: Setup node env
uses: actions/setup-node@v4
with:
node-version: 22.x
- run: npm install
- run: npm run test:unit
env:
CI: true
deploy_source:
name: deploy to lambda
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v1
- uses: actions/checkout@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 12.x
node-version: 22.x
- name: npm install and build
run: |
npm ci
npm prune --production
env:
CI: true
- name: zip
uses: montudor/action-zip@v0.1.0
uses: montudor/action-zip@v1
with:
args: zip -r ./app.zip board.js draw-canvas.js draw-error.js effects fonts grid.js icon.js index.js input-parser.js line.js node_modules options.js overlay.js overlays parsers renderer room.js styles.css token.js 5xx.jpg missing-token.jpg
args: zip -qq -r ./app.zip board.js draw-canvas.js draw-error.js effects fonts grid.js icon.js index.js input-parser.js line.js node_modules options.js overlay.js overlays parsers renderer room.js styles.css token.js 5xx.jpg missing-token.jpg
- name: default deploy
uses: appleboy/lambda-action@master
with:
Expand All @@ -45,4 +45,4 @@ jobs:
aws_region: us-west-2
s3_bucket: otfbm-deploy
function_name: otfbm
zip_file: app.zip
zip_file: app.zip
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
.nyc_output
app.zip
.tap
app.zip
2 changes: 1 addition & 1 deletion background/background.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def lambda_handler(event, context):


def download_img(buffer, url):
resp = requests.get(url, stream=True)
resp = requests.get(url, stream=True, headers={"user-agent": "curl/8.1.1"})
# TODO err handling
if resp.status_code == 200:
for chunk in resp:
Expand Down
Loading
Loading