ci(e2e): fixes for crypto-node build

This commit is contained in:
alina 🌸 2024-04-13 07:44:59 +03:00
parent 48d8d58bbf
commit 943b13088f
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI
4 changed files with 5 additions and 2 deletions

View file

@ -89,6 +89,7 @@ jobs:
env:
API_ID: ${{ secrets.TELEGRAM_API_ID }}
API_HASH: ${{ secrets.TELEGRAM_API_HASH }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: cd e2e && ./cli.sh ci
- name: Publish to canary NPM
if: github.repository == 'mtcute/mtcute' # do not run on forks

View file

@ -5,8 +5,6 @@ set -eau
method=$1
shift
# rewrite using switch:
case "$method" in
"run")
node runner.js $@

View file

@ -14,6 +14,8 @@ services:
build:
context: ..
dockerfile: e2e/Dockerfile.build
environment:
- GITHUB_TOKEN=${GITHUB_TOKEN}
networks:
- mtcute-e2e
depends_on:

View file

@ -36,6 +36,8 @@ const buildConfig = {
try {
config = require(path.join(packageDir, 'build.config.cjs'))
} catch (e) {
if (e.code !== 'MODULE_NOT_FOUND') throw e
return {}
}