Skip to content

Commit

Permalink
update test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-cai-timeplus committed Oct 8, 2023
1 parent b206ae3 commit c2fbce4
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 81 deletions.
122 changes: 61 additions & 61 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
name: "CodeQL"

on:
push:
branches:
- v2
- master
pull_request:
# The branches below must be a subset of the branches above
branches: [v2]
schedule:
- cron: "27 9 * * 1"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ["go"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
#name: "CodeQL"
#
#on:
# push:
# branches:
# - v2
# - master
# pull_request:
# # The branches below must be a subset of the branches above
# branches: [v2]
# schedule:
# - cron: "27 9 * * 1"
#
#jobs:
# analyze:
# name: Analyze
# runs-on: ubuntu-latest
# permissions:
# actions: read
# contents: read
# security-events: write
#
# strategy:
# fail-fast: false
# matrix:
# language: ["go"]
# # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# # Learn more about CodeQL language support at https://git.io/codeql-language-support
#
# steps:
# - name: Checkout repository
# uses: actions/checkout@v2
#
# # Initializes the CodeQL tools for scanning.
# - name: Initialize CodeQL
# uses: github/codeql-action/init@v1
# with:
# languages: ${{ matrix.language }}
# # If you wish to specify custom queries, you can do so here or in a config file.
# # By default, queries listed here will override any specified in a config file.
# # Prefix the list here with "+" to use these queries and those in the config file.
# # queries: ./path/to/local/query, your-org/your-repo/queries@main
#
# # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# # If this step fails, then you should remove it and run the build manually (see below)
# - name: Autobuild
# uses: github/codeql-action/autobuild@v1
#
# # ℹ️ Command-line programs to run using the OS shell.
# # 📚 https://git.io/JvXDl
#
# # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# # and modify them (or add more) to build your code if your project
# # uses a compiled language
#
# #- run: |
# # make bootstrap
# # make release
#
# - name: Perform CodeQL Analysis
# uses: github/codeql-action/analyze@v1
46 changes: 26 additions & 20 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
name: run-tests

on:
push:
branches:
- v1
- v2
workflow_dispatch:
pull_request:
branches:
- v1
- v2
schedule:
- cron: "0 9 1 * *"
- develop
paths-ignore:
- '**.md'

jobs:
run:
Expand All @@ -19,22 +15,32 @@ jobs:
fail-fast: true
matrix:
go:
- 1.16
- 1.17
- 1.18.0-beta2
clickhouse:
- 19.11
- 20.1
- 21.11
- 22.1
- '1.16'
- '1.17'
- '1.18'
- '1.19'
- '1.20'
- '1.21'
proton:
- latest

services:
clickhouse:
image: yandex/clickhouse-server:${{ matrix.clickhouse }}
proton:
image: ghcr.io/timeplus-io/proton:${{ matrix.proton }}
ports:
- 9000:9000
options: --ulimit nofile=262144:262144
- 3218:3218 # HTTP Streaming
- 8123:8123 # HTTP Snapshot
- 8463:8463 # TCP Streaming
- 5432:5432 # Postgres Snapshot
- 7587:7587 # TCP Snapshot
env:
STREAM_STORAGE_BROKERS: stream-store:19092
MAX_CONCURRENT_QUERIES: 100 # Default: 100
MAX_CONCURRENT_SELECT_QUERIES: 100 # Default: 100
MAX_CONCURRENT_INSERT_QUERIES: 100 # Default: 100
MAX_CONCURRENT_STREAMING_QUERIES: 100 # Default: 100
MAX_SERVER_MEMORY_USAGE_TO_RAM_RATIO: 0.9 # Default: 0.9
MAX_SERVER_MEMORY_CACHE_TO_RAM_RATIO: 0.5 # Default: 0.5

steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit c2fbce4

Please sign in to comment.