-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.12 KB
/
benchmark.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#
# JBZoo Toolbox - Csv-Blueprint.
#
# This file is part of the JBZoo Toolbox project.
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @license MIT
# @copyright Copyright (C) JBZoo.com, All rights reserved.
# @see https://github.com/JBZoo/Csv-Blueprint
#
name: Stress Test
on:
pull_request:
branches:
- '*'
push:
branches:
- 'master'
jobs:
stress-test:
name: Benchmark
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup PHP
uses: shivammathur/setup-php@v2
- name: Build project
run: make build --no-print-directory
- name: Create random huge CSV files
run: make bench-create-csv --no-print-directory
- name: Building Docker Image
uses: docker/build-push-action@v5
with:
context: .
push: false
tags: jbzoo/csv-blueprint:local
- name: 🔥 Benchmark with Docker 🔥
run: make bench-docker --no-print-directory