Compare commits

..

12 commits

Author SHA1 Message Date
Ticktock Depbot
823567edb9 Update dependency axios to v1.7.9
Some checks failed
renovate/artifacts Artifact file update failure
/ check-changes (pull_request) Successful in 5s
/ build (pull_request) Has been cancelled
2024-12-26 15:04:56 +00:00
b9c08dec64 Remove unused GitHub reporter
All checks were successful
/ build (push) Successful in 3m56s
/ check-changes (push) Successful in 6s
2024-12-26 15:56:55 +01:00
bd6e938335 Merge pull request 'Migrate renovate config' (#14) from renovate/migrate-config into main
Some checks failed
/ check-changes (push) Successful in 14s
/ build (push) Failing after 3m15s
Reviewed-on: #14
2024-12-26 14:45:39 +00:00
1c43c3ef21 Merge branch 'main' into renovate/migrate-config
Some checks failed
/ check-changes (pull_request) Successful in 15s
/ build (pull_request) Has been cancelled
2024-12-26 14:45:29 +00:00
20fba40782 Fix workflow
Some checks failed
/ build (push) Has been cancelled
/ check-changes (push) Has been cancelled
2024-12-26 15:45:12 +01:00
9843706066 Merge branch 'main' into renovate/migrate-config
Some checks failed
/ check-changes (pull_request) Successful in 15s
/ build (pull_request) Failing after 3m38s
2024-12-26 14:40:30 +00:00
236a2bb4ae Only release on main
All checks were successful
/ build (push) Successful in 3m27s
/ check-changes (push) Successful in 5s
2024-12-26 15:39:47 +01:00
69bc410d97 Merge pull request 'Update actions/forgejo-release action to v2.5.1' (#13) from renovate/actions-forgejo-release-2.x into main
Some checks failed
/ build (push) Has been cancelled
/ check-changes (push) Has been cancelled
Reviewed-on: #13
2024-12-26 14:34:10 +00:00
Ticktock Depbot
a59de5796f Migrate config renovate.json
All checks were successful
/ check-changes (push) Successful in 14s
/ build (push) Successful in 3m59s
2024-12-26 14:29:21 +00:00
Ticktock Depbot
ad142105f3 Update actions/forgejo-release action to v2.5.1
All checks were successful
/ check-changes (push) Successful in 15s
/ build (push) Successful in 3m34s
2024-12-26 14:29:18 +00:00
2fa44b12f6 Merge pull request 'Update renovate configuration' (#12) from renovate/update-config into main
All checks were successful
/ build (push) Has been skipped
/ check-changes (push) Successful in 5s
Reviewed-on: #12
2024-12-26 14:26:52 +00:00
46eb763adb Update renovate configuration
All checks were successful
/ check-changes (push) Successful in 6s
/ build (push) Successful in 3m36s
2024-12-26 15:26:03 +01:00
5 changed files with 28 additions and 46 deletions

View file

@ -1,4 +1,9 @@
on: [push]
on:
push:
branches:
- main
pull_request:
jobs:
check-changes:
runs-on: docker
@ -67,9 +72,13 @@ jobs:
run: npx playwright test
- name: Build WebUI
run: yarn build
# The following steps only run on push to main
- name: Get current block
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
id: getBlockHeight
run: echo "blockHeight=$(curl -s https://mempool.space/api/blocks/tip/height)" >> $GITHUB_OUTPUT
- name: Write block height to file
env:
BLOCK_HEIGHT: ${{ steps.getBlockHeight.outputs.blockHeight }}
@ -94,12 +103,14 @@ jobs:
echo "Directory size is within the threshold $DIRECTORY_SIZE"
fi
- name: Create tarball
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: tar czf webui.tgz --strip-components=1 dist
- name: Build LittleFS
run: |
set -e
/tmp/mklittlefs/mklittlefs -c build_gz -s 410000 output/littlefs.bin
- name: Upload artifacts
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
with:
path: |
@ -107,7 +118,7 @@ jobs:
output/littlefs.bin
- name: Create release
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: https://code.forgejo.org/actions/forgejo-release@v2.4.0
uses: https://code.forgejo.org/actions/forgejo-release@v2.5.1
with:
url: 'https://git.btclock.dev/'
repo: '${{ github.repository }}'

View file

@ -42,8 +42,7 @@
"typescript": "^5.5.4",
"typescript-eslint": "^8.7.0",
"vite": "^5.4.7",
"vitest": "^2.1.1",
"vitest-github-actions-reporter": "^0.11.0"
"vitest": "^2.1.1"
},
"type": "module",
"dependencies": {
@ -65,7 +64,6 @@
},
"resolutions": {
"es5-ext": ">=0.10.64",
"undici": ">=5.28.4",
"ws": ">=8.18.0",
"axios": ">=1.7.7",
"micromatch": ">=4.0.8"

View file

@ -1,6 +1,14 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
]
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended"],
"packageRules": [
{
"matchUpdateTypes": ["major"],
"enabled": false,
"matchPackageNames": ["*"]
}
],
"npm": {
"rangeStrategy": "update-lockfile"
}
}

View file

@ -1,6 +1,5 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import GithubActionsReporter from 'vitest-github-actions-reporter';
// import { visualizer } from 'rollup-plugin-visualizer';
import * as fs from 'fs';
@ -100,8 +99,7 @@ export default defineConfig({
test: {
include: ['src/**/*.{test,spec}.{js,ts}'],
globals: true,
environment: 'jsdom',
reporters: process.env.GITHUB_ACTIONS ? ['default', new GithubActionsReporter()] : 'default'
environment: 'jsdom'
},
define: {
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)

View file

@ -2,22 +2,6 @@
# yarn lockfile v1
"@actions/core@^1.10.0":
version "1.10.1"
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.10.1.tgz#61108e7ac40acae95ee36da074fa5850ca4ced8a"
integrity sha512-3lBR9EDAY+iYIpTnTIXmWcNbX3T2kCkAEQGIQx4NVQ0575nk2k3GRZDTPQG+vVtS2izSLmINlxXf0uLtnrTP+g==
dependencies:
"@actions/http-client" "^2.0.1"
uuid "^8.3.2"
"@actions/http-client@^2.0.1":
version "2.2.0"
resolved "https://registry.yarnpkg.com/@actions/http-client/-/http-client-2.2.0.tgz#f8239f375be6185fcd07765efdcf0031ad5df1a0"
integrity sha512-q+epW0trjVUUHboliPb4UF9g2msf+w61b32tAkFEwL/IwP0DQWgbCMM0Hbe3e3WXSKz5VcUXbzJQgy8Hkra/Lg==
dependencies:
tunnel "^0.0.6"
undici "^5.25.4"
"@adobe/css-tools@^4.4.0":
version "4.4.0"
resolved "https://registry.yarnpkg.com/@adobe/css-tools/-/css-tools-4.4.0.tgz#728c484f4e10df03d5a3acd0d8adcbbebff8ad63"
@ -3089,11 +3073,6 @@ tslib@^2.7.0:
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.8.1.tgz#612efe4ed235d567e8aba5f2a5fab70280ade83f"
integrity sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==
tunnel@^0.0.6:
version "0.0.6"
resolved "https://registry.yarnpkg.com/tunnel/-/tunnel-0.0.6.tgz#72f1314b34a5b192db012324df2cc587ca47f92c"
integrity sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==
type-check@^0.4.0, type-check@~0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1"
@ -3120,7 +3099,7 @@ typescript@^5.5.4:
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b"
integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==
undici@>=5.28.4, undici@^5.25.4:
undici@>=5.28.4:
version "6.19.8"
resolved "https://registry.yarnpkg.com/undici/-/undici-6.19.8.tgz#002d7c8a28f8cc3a44ff33c3d4be4d85e15d40e1"
integrity sha512-U8uCCl2x9TK3WANvmBavymRzxbfFYG+tAu+fgx3zxQy3qdagQqBLwJVrdyO1TBfUXvfKveMKJZhpvUYoOjM+4g==
@ -3142,11 +3121,6 @@ util-deprecate@^1.0.2:
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==
uuid@^8.3.2:
version "8.3.2"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
vite-node@2.1.8:
version "2.1.8"
resolved "https://registry.yarnpkg.com/vite-node/-/vite-node-2.1.8.tgz#9495ca17652f6f7f95ca7c4b568a235e0c8dbac5"
@ -3174,13 +3148,6 @@ vitefu@^0.2.5:
resolved "https://registry.yarnpkg.com/vitefu/-/vitefu-0.2.5.tgz#c1b93c377fbdd3e5ddd69840ea3aa70b40d90969"
integrity sha512-SgHtMLoqaeeGnd2evZ849ZbACbnwQCIwRH57t18FxcXoZop0uQu0uzlIhJBlF/eWVzuce0sHeqPcDo+evVcg8Q==
vitest-github-actions-reporter@^0.11.0:
version "0.11.1"
resolved "https://registry.yarnpkg.com/vitest-github-actions-reporter/-/vitest-github-actions-reporter-0.11.1.tgz#42ffaaf9d3b182cfb7552532f9d1e290190914e0"
integrity sha512-ZHHB0wBgOPhMYCB17WKVlJZa+5SdudBZFoVoebwfq3ioIUTeLQGYHwh85vpdJAxRghLP8d0qI/6eCTueGyDVXA==
dependencies:
"@actions/core" "^1.10.0"
vitest@^2.1.1:
version "2.1.8"
resolved "https://registry.yarnpkg.com/vitest/-/vitest-2.1.8.tgz#2e6a00bc24833574d535c96d6602fb64163092fa"