Skip to content

Commit

Permalink
Update tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yandex-praktikum authored Feb 21, 2025
1 parent 8d0ae28 commit 4246731
Showing 1 changed file with 9 additions and 21 deletions.
30 changes: 9 additions & 21 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,16 @@ on:
tags:
- '**'


jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Set up GitHub Actions
uses: actions/checkout@v3
- name: Use Node.js 14.x
uses: actions/setup-node@v3
with:
node-version: 14.x
- name: Check if the repository is private
run: exit 1
if: ${{github.event.repository.private}}
- name: Get testing lib
run: set -eu && git clone --branch main --single-branch --depth 1 https://github.com/Yandex-Practicum/tests-selfmade-project-2-v2-public.git
- name: Run the tests
run: bash tests-selfmade-project-2-v2-public/run.sh
- name: Upload layout-compare
uses: actions/upload-artifact@v4
with:
name: layout-compare
path: tests-selfmade-project-2-v2-public/output.jpg
- name: Show test results
run: bash tests-selfmade-project-2-v2-public/result.sh
- name: Checkout repository
uses: actions/checkout@v3
- name: Check if the repository is private
run: exit 1
if: ${{github.event.repository.private}}
- name: Tests
uses: Yandex-Practicum/test-project-action@v1
with:
project: 'ono-tebe-nado'

0 comments on commit 4246731

Please sign in to comment.