ci(e2e): fixes for crypto-node build
This commit is contained in:
parent
48d8d58bbf
commit
943b13088f
4 changed files with 5 additions and 2 deletions
1
.github/workflows/test.yaml
vendored
1
.github/workflows/test.yaml
vendored
|
@ -89,6 +89,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
API_ID: ${{ secrets.TELEGRAM_API_ID }}
|
API_ID: ${{ secrets.TELEGRAM_API_ID }}
|
||||||
API_HASH: ${{ secrets.TELEGRAM_API_HASH }}
|
API_HASH: ${{ secrets.TELEGRAM_API_HASH }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: cd e2e && ./cli.sh ci
|
run: cd e2e && ./cli.sh ci
|
||||||
- name: Publish to canary NPM
|
- name: Publish to canary NPM
|
||||||
if: github.repository == 'mtcute/mtcute' # do not run on forks
|
if: github.repository == 'mtcute/mtcute' # do not run on forks
|
||||||
|
|
|
@ -5,8 +5,6 @@ set -eau
|
||||||
method=$1
|
method=$1
|
||||||
shift
|
shift
|
||||||
|
|
||||||
# rewrite using switch:
|
|
||||||
|
|
||||||
case "$method" in
|
case "$method" in
|
||||||
"run")
|
"run")
|
||||||
node runner.js $@
|
node runner.js $@
|
||||||
|
|
|
@ -14,6 +14,8 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ..
|
context: ..
|
||||||
dockerfile: e2e/Dockerfile.build
|
dockerfile: e2e/Dockerfile.build
|
||||||
|
environment:
|
||||||
|
- GITHUB_TOKEN=${GITHUB_TOKEN}
|
||||||
networks:
|
networks:
|
||||||
- mtcute-e2e
|
- mtcute-e2e
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
|
@ -36,6 +36,8 @@ const buildConfig = {
|
||||||
try {
|
try {
|
||||||
config = require(path.join(packageDir, 'build.config.cjs'))
|
config = require(path.join(packageDir, 'build.config.cjs'))
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
if (e.code !== 'MODULE_NOT_FOUND') throw e
|
||||||
|
|
||||||
return {}
|
return {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue