RS-31: Implement API to change labels #318
Workflow file for this run
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
name: ci | |
on: | |
push: | |
branches: [ main ] | |
tags: | |
- 'v*' | |
pull_request: | |
branches: [ main ] | |
jobs: | |
cpplint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build cpplint image | |
run: pip install cpplint | |
- name: Check code in /src | |
run: find src/ -name "*.cc" -o -name "*.h" | xargs cpplint | |
- name: Check code in /tests | |
run: find tests/ -name "*.cc" -o -name "*.h" | xargs cpplint | |
- name: Check code in /examples | |
run: find examples/ -name "*.cc" -o -name "*.h" | xargs cpplint | |
build: | |
runs-on: ubuntu-latest | |
needs: cpplint | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Build and export | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
tags: ${{github.repository}}:latest | |
outputs: type=docker,dest=/tmp/image.tar | |
build-args: BUILD_TYPE=Debug | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: image | |
path: /tmp/image.tar | |
test-pkg-with-conan: | |
runs-on: ubuntu-22.04 | |
needs: cpplint | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install conan | |
run: pip3 install conan==1.58.0 | |
- uses: ./.github/actions/check-package | |
test-pkg-without-conan: | |
runs-on: ubuntu-22.04 | |
needs: cpplint | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/check-package | |
tests: | |
strategy: | |
matrix: | |
token: [ "", "TOKEN" ] | |
reductstore_version: [ "main", "latest" ] | |
license_file: [ "", "lic.key" ] | |
include: | |
- token: "" | |
exclude_token_api_tag: "~[token_api]" | |
- token: "TOKEN" | |
exclude_token_api_tag: "" | |
- reductstore_version: "main" | |
exclude_api_version_tag: "" | |
- reductstore_version: "latest" | |
exclude_api_version_tag: "~[1_10]" | |
- license_file: "" | |
exclude_license_tag: "~[license]" | |
needs: | |
- build | |
- test-pkg-with-conan | |
- test-pkg-without-conan | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download artifact | |
uses: actions/download-artifact@v2 | |
with: | |
name: image | |
path: /tmp/ | |
- uses: actions/checkout@v4 | |
- name: Generate license | |
run: echo '${{secrets.LICENSE_KEY}}' > lic.key | |
- uses: ./.github/actions/run-tests | |
with: | |
api-token: ${{matrix.token}} | |
tags: "${{matrix.exclude_token_api_tag}} ${{matrix.exclude_api_version_tag}} ${{matrix.exclude_license_tag}}" | |
reductstore-version: ${{matrix.reductstore_version}} | |
lic_file: ${{matrix.license_file}} |