Skip to content

CCM6126 respond with a json:api format for 413 errors (#752) #2746

CCM6126 respond with a json:api format for 413 errors (#752)

CCM6126 respond with a json:api format for 413 errors (#752) #2746

Workflow file for this run

name: Build
on: push
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # This causes all history to be fetched, which is required for calculate-version to function
- name: Install Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Update apt repositories
run: sudo apt update
- name: Install Java
run: sudo apt-get install --yes default-jre default-jdk
- name: Install node
run: |
sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
NODE_MAJOR=20
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
- name: Upgrade python packaging tools
run: python -m pip install --upgrade pip setuptools wheel
- name: Install poetry
run: pip install poetry
- name: Cache poetry packages
uses: actions/cache@v1
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-build-cache-poetry-packages-${{ hashFiles('**/poetry.lock') }}
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-build-cache-npm-packages-${{ hashFiles('**/package-lock.json') }}
- name: Install repo
run: make install
- name: Test sandbox server
run: |
cd sandbox
npm run test
- name: Check licenses
run: make check-licenses
- name: Lint
run: make lint
- name: Static analysis
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: make static-analysis
- name: Compile spec
run: make publish
- name: Generate release
run: make release