mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-27 12:55:11 +01:00
31 lines
862 B
YAML
31 lines
862 B
YAML
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
|
|
name: Tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build_and_test:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [12.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- run: npm ci
|
|
- run: npm run gramjs:tl
|
|
- run: npm test
|
|
env:
|
|
TELEGRAM_T_API_ID: ${{ secrets.TELEGRAM_API_ID }}
|
|
TELEGRAM_T_API_HASH: ${{ secrets.TELEGRAM_API_HASH }}
|
|
TEST_SESSION: ${{ secrets.TEST_SESSION }}
|