generated from yandex-praktikum/react-mesto-api-full-gha
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 88254b3
Showing
4 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: Tests 15 sprint | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
tags: | ||
- '**' | ||
|
||
|
||
jobs: | ||
test_config: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up GitHub Actions | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
- name: Сheck if the repository is private | ||
run: exit 1 | ||
if: ${{github.event.repository.private}} | ||
- name: Get testing lib | ||
run: set -eu && git clone --branch master --single-branch --depth 1 https://github.com/Yandex-Practicum/web-autotest-public.git | ||
- name: Copy Makefile | ||
run: cp ./web-autotest-public/Makefile ./Makefile | ||
- name: Installing Dependencies | ||
run: cd backend&&npm i | ||
- name: Cache test dependencies | ||
id: cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ./web-autotest-public | ||
key: modules-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
- name: Install test dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
npm install -g [email protected] | ||
pnpm i --fix-lockfile --prefix web-autotest-public/ | ||
- name: Run test config | ||
run: make proj15-test-config | ||
test_endpoints: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up GitHub Actions | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
- name: Сheck if the repository is private | ||
run: exit 1 | ||
if: ${{github.event.repository.private}} | ||
- name: Get testing lib | ||
run: set -eu && git clone --branch master --single-branch --depth 1 https://github.com/Yandex-Practicum/web-autotest-public.git | ||
- name: Copy Makefile | ||
run: cp ./web-autotest-public/Makefile ./Makefile | ||
- name: Start MongoDB | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: '4.4' | ||
- name: Installing Dependencies | ||
run: cd backend&&npm i | ||
- name: Installing wait-port | ||
run: npm install -g wait-port | ||
- name: Run server | ||
run: npm --prefix backend/ run start & wait-port -t 30000 localhost:3000 | ||
- name: Cache test dependencies | ||
id: cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ./web-autotest-public | ||
key: modules-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
- name: Install test dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
npm install -g [email protected] | ||
pnpm i --fix-lockfile --prefix web-autotest-public/ | ||
- name: Run test endpoints | ||
run: make proj15-test-endpoints |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[![Статус тестов](../../actions/workflows/tests.yml/badge.svg)](../../actions/workflows/tests.yml) | ||
|
||
# react-mesto-api-full | ||
Репозиторий для приложения проекта `Mesto`, включающий фронтенд и бэкенд части приложения со следующими возможностями: авторизации и регистрации пользователей, операции с карточками и пользователями. Бэкенд расположите в директории `backend/`, а фронтенд - в `frontend/`. | ||
|
||
Пожалуйста, прикрепите в это описание ссылку на сайт, размещенный на Яндекс.Облаке. | ||
|
||
Адрес репозитория: https://github.com/... | ||
|
||
## Ссылки на проект | ||
|
||
IP-адрес x.x.x.x | ||
|
||
Frontend https://... | ||
|
||
Backend https://... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|