generated from yandex-praktikum/ono-tebe-nado
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 934 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Tests
on:
push:
branches:
- '**'
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@v3
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