Skip to content

Commit

Permalink
save money
Browse files Browse the repository at this point in the history
  • Loading branch information
cdxker committed Apr 11, 2024
1 parent 9b5e88b commit 6c93f4b
Show file tree
Hide file tree
Showing 3 changed files with 148 additions and 148 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/chat-tests.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
name: chat test suite

on:
pull_request:
paths:
- 'chat/**'
- '.github/workflows/**'
jobs:
build-test:
runs-on: blacksmith-2vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v2
- name: Setting up
run: sed -i 's/chat\///' ./chat/.eslintrc.json
- name: Install dependencies
run: yarn --cwd chat
- name: Running lint
run: yarn --cwd chat build
eslint:
runs-on: blacksmith-2vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v2
- name: Setting up
run: sed -i 's/chat\///' ./chat/.eslintrc.json
- name: Install dependencies
run: yarn --cwd chat
- name: Running lint
run: yarn --cwd chat lint:CI
- name: Annotate Code Linting Results
uses: ataylorme/[email protected]
if: always()
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
report-json: './chat/eslint_report.json'
# name: chat test suite
#
# on:
# pull_request:
# paths:
# - 'chat/**'
# - '.github/workflows/**'
# jobs:
# build-test:
# runs-on: blacksmith-2vcpu-ubuntu-2204
# steps:
# - uses: actions/checkout@v2
# - name: Setting up
# run: sed -i 's/chat\///' ./chat/.eslintrc.json
# - name: Install dependencies
# run: yarn --cwd chat
# - name: Running lint
# run: yarn --cwd chat build
# eslint:
# runs-on: blacksmith-2vcpu-ubuntu-2204
# steps:
# - uses: actions/checkout@v2
# - name: Setting up
# run: sed -i 's/chat\///' ./chat/.eslintrc.json
# - name: Install dependencies
# run: yarn --cwd chat
# - name: Running lint
# run: yarn --cwd chat lint:CI
# - name: Annotate Code Linting Results
# uses: ataylorme/[email protected]
# if: always()
# with:
# repo-token: '${{ secrets.GITHUB_TOKEN }}'
# report-json: './chat/eslint_report.json'
156 changes: 78 additions & 78 deletions .github/workflows/rust-tests.yml
Original file line number Diff line number Diff line change
@@ -1,78 +1,78 @@
name: rust test suite

on:
pull_request:
paths:
- 'server/**'
- '.github/workflows/**'

jobs:
clippy_check_ingestion:
runs-on: blacksmith-8vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v1
- name: Caching Rust Dep
uses: useblacksmith/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: rustup component add clippy
- uses: clechasseur/rs-clippy-check@v3
with:
args: --features runtime-env --bin ingestion-microservice --manifest-path server/Cargo.toml
- uses: useblacksmith/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.labels }}-rust-${{ matrix.rust }}-
clippy_check:
runs-on: blacksmith-8vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v1
- name: Caching Rust Dep
uses: useblacksmith/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: rustup component add clippy
- uses: clechasseur/rs-clippy-check@v3
with:
args: --features runtime-env --manifest-path server/Cargo.toml
- uses: useblacksmith/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.labels }}-rust-${{ matrix.rust }}-
redoc:
runs-on: blacksmith-8vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v2
- name: Caching Rust Dep
uses: useblacksmith/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Installing Vaccum
run: npm install -g @quobix/vacuum
- name: Generating OpenAPI spec
run: cargo run --features runtime-env --manifest-path server/Cargo.toml --bin redoc_ci > openapi.json
- name: Vaccum lint
run: vacuum lint openapi.json -r '.github/workflows/rules.yaml' -d

# name: rust test suite
#
# on:
# pull_request:
# paths:
# - 'server/**'
# - '.github/workflows/**'
#
# jobs:
# clippy_check_ingestion:
# runs-on: blacksmith-8vcpu-ubuntu-2204
# steps:
# - uses: actions/checkout@v1
# - name: Caching Rust Dep
# uses: useblacksmith/cache@v5
# with:
# path: |
# ~/.cargo/registry
# ~/.cargo/git
# target
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# - run: rustup component add clippy
# - uses: clechasseur/rs-clippy-check@v3
# with:
# args: --features runtime-env --bin ingestion-microservice --manifest-path server/Cargo.toml
# - uses: useblacksmith/cache@v5
# with:
# path: |
# ~/.cargo/registry
# ~/.cargo/git
# target
# key: ${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
# restore-keys: |
# ${{ runner.labels }}-rust-${{ matrix.rust }}-
# clippy_check:
# runs-on: blacksmith-8vcpu-ubuntu-2204
# steps:
# - uses: actions/checkout@v1
# - name: Caching Rust Dep
# uses: useblacksmith/cache@v5
# with:
# path: |
# ~/.cargo/registry
# ~/.cargo/git
# target
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# - run: rustup component add clippy
# - uses: clechasseur/rs-clippy-check@v3
# with:
# args: --features runtime-env --manifest-path server/Cargo.toml
# - uses: useblacksmith/cache@v5
# with:
# path: |
# ~/.cargo/registry
# ~/.cargo/git
# target
# key: ${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
# restore-keys: |
# ${{ runner.labels }}-rust-${{ matrix.rust }}-
# redoc:
# runs-on: blacksmith-8vcpu-ubuntu-2204
# steps:
# - uses: actions/checkout@v2
# - name: Caching Rust Dep
# uses: useblacksmith/cache@v5
# with:
# path: |
# ~/.cargo/registry
# ~/.cargo/git
# target
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# - name: Installing Vaccum
# run: npm install -g @quobix/vacuum
# - name: Generating OpenAPI spec
# run: cargo run --features runtime-env --manifest-path server/Cargo.toml --bin redoc_ci > openapi.json
# - name: Vaccum lint
# run: vacuum lint openapi.json -r '.github/workflows/rules.yaml' -d
#
72 changes: 36 additions & 36 deletions .github/workflows/search-tests.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
name: search test suite

on:
pull_request:
paths:
- 'search/**'
- '.github/workflows/**'
jobs:
build-test:
runs-on: blacksmith-2vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v2
- name: Setting up
run: sed -i 's/search\///' ./search/.eslintrc.json
- name: Install dependencies
run: yarn --cwd search
- name: Running lint
run: yarn --cwd search build
eslint:
runs-on: blacksmith-2vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v2
- name: Setting up
run: sed -i 's/search\///' ./search/.eslintrc.json
- name: Install dependencies
run: yarn --cwd search
- name: Running lint
run: yarn --cwd search lint:CI
- name: Annotate Code Linting Results
uses: ataylorme/[email protected]
if: always()
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
report-json: './search/eslint_report.json'


# name: search test suite
#
# on:
# pull_request:
# paths:
# - 'search/**'
# - '.github/workflows/**'
# jobs:
# build-test:
# runs-on: blacksmith-2vcpu-ubuntu-2204
# steps:
# - uses: actions/checkout@v2
# - name: Setting up
# run: sed -i 's/search\///' ./search/.eslintrc.json
# - name: Install dependencies
# run: yarn --cwd search
# - name: Running lint
# run: yarn --cwd search build
# eslint:
# runs-on: blacksmith-2vcpu-ubuntu-2204
# steps:
# - uses: actions/checkout@v2
# - name: Setting up
# run: sed -i 's/search\///' ./search/.eslintrc.json
# - name: Install dependencies
# run: yarn --cwd search
# - name: Running lint
# run: yarn --cwd search lint:CI
# - name: Annotate Code Linting Results
# uses: ataylorme/[email protected]
# if: always()
# with:
# repo-token: '${{ secrets.GITHUB_TOKEN }}'
# report-json: './search/eslint_report.json'
#
#

0 comments on commit 6c93f4b

Please sign in to comment.