-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
1 parent
45a0921
commit 4f8587a
Showing
2 changed files
with
17 additions
and
18 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 |
---|---|---|
@@ -1,66 +1,65 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: CI | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [ master, CI1 ] | ||
pull_request: | ||
branches: [ master, CI1 ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-22.04 | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
|
||
# Install | ||
# Install dependencies and other required software | ||
- name: Install | ||
run: | | ||
sudo apt-get clean | ||
sudo apt-get update | ||
sudo apt-get install dpkg | ||
sudo apt-get install firefox | ||
npm install -g testcafe | ||
# wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | ||
# sudo dpkg -i --force-depends google-chrome-stable_current_amd64.deb | ||
./tools/install-tarantool.sh | ||
./control-install.sh | ||
source $HOME/.cargo/env | ||
# Print versions | ||
# Print versions for debugging | ||
- name: Print versions | ||
run: | | ||
node --version | ||
testcafe --version | ||
rustc -V | ||
# Build | ||
# Build the project | ||
- name: Build | ||
run: | | ||
source $HOME/.cargo/env | ||
export CARGO_TARGET_DIR=$HOME/target | ||
./build.sh | ||
# Test | ||
# Run tests | ||
- name: Test | ||
run: | | ||
./control-start.sh | ||
sleep 200 | ||
tail -n +1 ./data/tarantool/tarantool.log | ||
tail -n +1 ./logs/*.log | ||
cd ./source-web && npm test | ||
# Добавим шаг для продолжения работы при сбое тестов | ||
continue-on-error: true | ||
|
||
# Загружаем скриншоты как артефакты (если они есть) | ||
- name: Upload TestCafe screenshots | ||
if: failure() # Выполняется только при сбое тестов | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: testcafe-screenshots | ||
path: ./source-web/screenshots/ # Путь к папке с сохраненными скриншотами | ||
|
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