Remove obsolete NPM_TOKEN from secrets in Secrets and variables tab.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| Duration, | |
| Effect, | |
| Fiber, | |
| TestClock, | |
| TestContext, | |
| pipe, | |
| } from 'effect'; | |
| const delayEffect = <R, E>( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Effect, Layer, pipe } from 'effect'; | |
| import { TaggedError } from 'effect/Data'; | |
| type EffectResultRequirement< | |
| T extends (...args: any) => Effect.Effect<unknown, unknown, unknown>, | |
| > = Effect.Effect.Context<ReturnType<T>>; | |
| type EffectResultSuccess< | |
| T extends (...args: any) => Effect.Effect<unknown, unknown, unknown>, | |
| > = Effect.Effect.Success<ReturnType<T>>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const delay = async (ms: number) => | |
| new Promise((resolve) => { | |
| setTimeout(resolve, ms); | |
| }); | |
| const enforceMinimumDuration = async <TResult>( | |
| promise: Promise<TResult>, | |
| minDuration: number, | |
| ) => { | |
| const [result] = await Promise.all([promise, delay(minDuration)]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const bigIntReplacer = (_key: string, value: unknown) => { | |
| if (typeof value === 'bigint') { | |
| return { | |
| type: 'bigint', | |
| value: value.toString(), | |
| }; | |
| } | |
| return value; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Context, Effect, Layer, pipe } from 'effect'; | |
| // ---------------------------------------------- | |
| // define layer | |
| class Logger extends Context.Tag('Logger')< | |
| Logger, | |
| { | |
| readonly info: (message: string) => Effect.Effect<void>; | |
| readonly error: (message: string) => Effect.Effect<void>; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jobs: | |
| my-task: | |
| name: My task | |
| runs-on: ubuntu-latest | |
| - name: ℹ️ Dump GitHub context | |
| env: | |
| GITHUB_CONTEXT: ${{ toJson(github) }} | |
| run: | | |
| echo "$GITHUB_CONTEXT" |
