Skip to content

Update AI api schema (#2326) #4430

Update AI api schema (#2326)

Update AI api schema (#2326) #4430

Workflow file for this run

name: Test project
on:
pull_request:
push:
branches:
- "master"
- "dev"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
name: Run tests defined for the project
runs-on: ubuntu-20.04
services:
postgres:
image: postgres:14-alpine
env:
POSTGRES_HOST_AUTH_METHOD: "trust"
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready --health-interval 10s --health-timeout 5s
--health-retries 5
ports:
- 5432:5432
rabbitmq:
image: rabbitmq:3.9-management
env:
RABBITMQ_DEFAULT_VHOST: "livepeer"
ports:
- 5672:5672
- 15672:15672
steps:
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# Check https://github.com/livepeer/go-livepeer/pull/1891
# for ref value discussion
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v3
with:
node-version: "18"
cache: "yarn"
- name: yarn install
run: yarn install --frozen-lockfile
- name: yarn lint
run: yarn run prettier:check
- name: yarn tests without coverage
env:
NODE_OPTIONS: "--max-old-space-size=8192"
run: yarn run test
# - name: yarn tests with coverage
# env:
# NODE_OPTIONS: "--max-old-space-size=8192"
# run: yarn run coverage
# - name: Upload coverage reports
# uses: codecov/codecov-action@v3
# with:
# files: ./coverage/lcov.info
# name: ${{ github.event.repository.name }}
# verbose: true
codeql:
name: Perform CodeQL analysis
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: typescript,javascript
config-file: ./.github/codeql-config.yaml
# 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@v2
# ℹ️ 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@v2