Skip to content

Commit

Permalink
feat: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Jan 2, 2024
1 parent 9467cb8 commit e577b48
Show file tree
Hide file tree
Showing 11 changed files with 3,573 additions and 4,390 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: ci

on: [push, workflow_dispatch]

jobs:
build-and-test-job:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
env:
NODE_OPTIONS: '--max-old-space-size=3200'
steps:
- { uses: actions/checkout@v4, with: { persist-credentials: false } }
- { uses: actions/setup-node@v4, with: { node-version: 'lts/*', cache: 'yarn' } }
- run: yarn --frozen-lockfile
- run: yarn build
- run: yarn test
24 changes: 0 additions & 24 deletions .github/workflows/default.yml

This file was deleted.

12 changes: 3 additions & 9 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,9 @@ jobs:
if: "!contains(github.event.head_commit.message, 'skip ci')"
env: { NODE_OPTIONS: '--max-old-space-size=3200' }
steps:
- { uses: actions/checkout@v2, with: { persist-credentials: true } }
- { uses: actions/setup-node@v1, with: { node-version: 14 } }
- uses: actions/cache@v2
with:
path: ./node_modules
key: deps-v1-${{ runner.os }}-${{ hashFiles('yarn.lock') }}

- name: yarn
run: yarn --frozen-lockfile
- { uses: actions/checkout@v4, with: { persist-credentials: true } }
- { uses: actions/setup-node@v4, with: { node-version: 'lts/*', cache: 'yarn' } }
- run: yarn --frozen-lockfile

- name: lhci
env:
Expand Down
14 changes: 3 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,16 @@ jobs:
if: "!contains(github.event.head_commit.message, 'skip ci')"
env: { NODE_OPTIONS: '--max-old-space-size=3200' }
steps:
- { uses: actions/checkout@v2, with: { persist-credentials: true } }
- { uses: actions/setup-node@v2, with: { node-version: 14 } }
- { uses: actions/checkout@v4, with: { persist-credentials: true } }
- { uses: actions/setup-node@v4, with: { node-version: 'lts/*', cache: 'yarn' } }
- run: yarn --frozen-lockfile

# Cache for npm/npx in ~/.npm
- uses: actions/cache@v2
with:
path: ~/.npm
key: npm-v1-${{ runner.os }}

# Normal cache for yarn in ./node_modules
- uses: actions/cache@v2
with:
path: ./node_modules
key: deps-v1-${{ runner.os }}-${{ hashFiles('yarn.lock') }}

- name: yarn
run: yarn --frozen-lockfile

- name: build
run: yarn build-prod

Expand Down
64 changes: 1 addition & 63 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,63 +1 @@
## [1.2.6](https://github.com/NaturalCycles/github-db/compare/v1.2.5...v1.2.6) (2021-10-20)


### Bug Fixes

* deps ([41a04b4](https://github.com/NaturalCycles/github-db/commit/41a04b465955be563c4f95cc29f909b528334114))
* deps ([09d58a4](https://github.com/NaturalCycles/github-db/commit/09d58a437eda0202d5da29f4ab8685a8c3900670))

## [1.2.5](https://github.com/NaturalCycles/github-db/compare/v1.2.4...v1.2.5) (2020-10-25)


### Bug Fixes

* deps ([e03b3f2](https://github.com/NaturalCycles/github-db/commit/e03b3f2de7e6c1b47c1591930b4227df06f8d6e1))

## [1.2.4](https://github.com/NaturalCycles/github-db/compare/v1.2.3...v1.2.4) (2020-08-11)


### Bug Fixes

* deps ([e90f92f](https://github.com/NaturalCycles/github-db/commit/e90f92fd2c6332ffa7811b2a124c19a2329444dc))

## [1.2.3](https://github.com/NaturalCycles/github-db/compare/v1.2.2...v1.2.3) (2020-05-31)


### Bug Fixes

* allow read-only access to public repo without token! ([21442ca](https://github.com/NaturalCycles/github-db/commit/21442ca4396889fa4267dd2a6d9580e51f5d93e3))

## [1.2.2](https://github.com/NaturalCycles/github-db/compare/v1.2.1...v1.2.2) (2020-05-31)


### Bug Fixes

* adapt to db-lib@7 ([b5b0a4d](https://github.com/NaturalCycles/github-db/commit/b5b0a4dded722a42d6d558bd760fad667585c6d8))

## [1.2.1](https://github.com/NaturalCycles/github-db/compare/v1.2.0...v1.2.1) (2020-05-25)


### Bug Fixes

* publish ([06a863b](https://github.com/NaturalCycles/github-db/commit/06a863ba22c9aba09c9c83c6ffab92fb994e363e))

# [1.2.0](https://github.com/NaturalCycles/github-db/compare/v1.1.0...v1.2.0) (2020-05-24)


### Features

* use p-queue to control github api access concurrency ([f19374c](https://github.com/NaturalCycles/github-db/commit/f19374ca24b3a6d76ec4c34d60f18973a1362574))

# [1.1.0](https://github.com/NaturalCycles/github-db/compare/v1.0.0...v1.1.0) (2020-05-24)


### Features

* saveFiles saves multiple files in 1 commit ([fb40ace](https://github.com/NaturalCycles/github-db/commit/fb40ace25a30d5f26401b0e4f8ae0b2bf2ca3ff1))

# 1.0.0 (2020-05-11)


### Features

* first working version ([245e3b6](https://github.com/NaturalCycles/github-db/commit/245e3b6c0225f418d69ac0ec2bb2b8bd4be77980))
See [Github Releases](https://github.com/NaturalCycles/github-db/releases)
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@
"dependencies": {
"@naturalcycles/db-lib": "^8.3.0",
"@naturalcycles/js-lib": "^14.6.0",
"@naturalcycles/nodejs-lib": "^12.4.0",
"@naturalcycles/nodejs-lib": "^13.3.0",
"p-queue": "^6.6.2"
},
"devDependencies": {
"@lhci/cli": "^0.8.2",
"@naturalcycles/dev-lib": "^12.8.1",
"@lhci/cli": "^0.13.0",
"@naturalcycles/dev-lib": "^13.44.10",
"@naturalcycles/time-lib": "^3.0.4",
"@types/node": "^16.11.1",
"fs-extra": "^10.0.0",
"jest": "^27.3.0"
"@types/node": "^20.10.6",
"jest": "^29.7.0"
},
"files": [
"dist",
Expand All @@ -36,10 +35,10 @@
"url": "https://github.com/NaturalCycles/github-db"
},
"engines": {
"node": ">=12.13.1"
"node": ">=18.12.0"
},
"version": "1.2.6",
"description": "",
"description": "GitHub branch as a Database",
"author": "Natural Cycles Team",
"license": "MIT"
}
14 changes: 6 additions & 8 deletions scripts/persistLHReport.script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ import { FileDB } from '@naturalcycles/db-lib/dist/adapter/file'
import { CommonTimeSeriesDao } from '@naturalcycles/db-lib/dist/timeseries/commonTimeSeriesDao'
import { TimeSeriesSaveBatchOp } from '@naturalcycles/db-lib/dist/timeseries/timeSeries.model'
import { _filterNullishValues } from '@naturalcycles/js-lib'
import { requireEnvKeys } from '@naturalcycles/nodejs-lib'
import { runScript } from '@naturalcycles/nodejs-lib/dist/script'
import * as fs from 'fs-extra'
import { fs2, requireEnvKeys, runScript } from '@naturalcycles/nodejs-lib'
import { GithubPersistencePlugin } from '../src'
import { lhciDir, tmpDir } from '../src/test/paths.cnst'

Expand Down Expand Up @@ -46,7 +44,7 @@ const tsDao = new CommonTimeSeriesDao({
})

runScript(async () => {
const fname = fs.readdirSync(`${lhciDir}`).find(f => f.endsWith('.json'))
const fname = fs2.readdirSync(`${lhciDir}`).find(f => f.endsWith('.json'))
if (!fname) {
console.log(`No *.json files found in ${lhciDir}`)
return
Expand All @@ -58,10 +56,10 @@ runScript(async () => {
throw new Error(`Cannot parse unixMillis from filename: ${fname}`)
}

const r = fs.readJsonSync(`${lhciDir}/${fname}`)
const r: any = fs2.readJsonSync(`${lhciDir}/${fname}`)
// console.log(r)

const r2 = {}
const r2: any = {}

props.forEach(prop => {
// console.log(prop)
Expand All @@ -72,8 +70,8 @@ runScript(async () => {
_filterNullishValues(r2, true)

// File is just for debugging
await fs.ensureDir(tmpDir)
fs.writeJsonSync(`${tmpDir}/report.json`, r2, { spaces: 2 })
fs2.ensureDirSync(tmpDir)
fs2.writeJsonSync(`${tmpDir}/report.json`, r2, { spaces: 2 })

/// /

Expand Down
Loading

0 comments on commit e577b48

Please sign in to comment.