Skip to content

Commit

Permalink
Update tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TiiFuchs authored May 8, 2024
1 parent 26be3f4 commit 52c61f7
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,38 @@ on:
workflow_dispatch:
jobs:
tests:
name: Run
name: Run Tests
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set up PHP with Composer
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: composer

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Install Composer Dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- name: Install NPM Packages
run: |
cd ./tests/mtproto
npm install
- name: Run Tests
run: ./vendor/bin/pest
env:
TELEGRAM_API_TOKEN: ${{ secrets.TELEGRAM_API_TOKEN }}
TELEGRAM_APP_ID: ${{ secrets.TELEGRAM_APP_ID }}
TELEGRAM_APP_HASH: ${{ secrets.TELEGRAM_APP_HASH }}
TELEGRAM_SESSION: ${{ secrets.TELEGRAM_SESSION }}
TELEGRAM_BOT: ${{ secrets.TELEGRAM_BOT }}
TELEGRAM_USER: ${{ secrets.TELEGRAM_USER }}
- name: Set up PHP with Composer
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: composer

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Composer Dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Install NPM Packages
run: |
cd ./tests/mtproto
npm install
- name: Run Tests
run: ./vendor/bin/pest
env:
TELEGRAM_API_TOKEN: ${{ secrets.TELEGRAM_API_TOKEN }}
TELEGRAM_APP_ID: ${{ secrets.TELEGRAM_APP_ID }}
TELEGRAM_APP_HASH: ${{ secrets.TELEGRAM_APP_HASH }}
TELEGRAM_SESSION: ${{ secrets.TELEGRAM_SESSION }}
TELEGRAM_BOT: ${{ secrets.TELEGRAM_BOT }}
TELEGRAM_USER: ${{ secrets.TELEGRAM_USER }}

0 comments on commit 52c61f7

Please sign in to comment.