Skip to content

Fix Carrot's API tests and Homepage redirecting #1970

Fix Carrot's API tests and Homepage redirecting

Fix Carrot's API tests and Homepage redirecting #1970

Workflow file for this run

name: ci
on: [pull_request]
jobs:
format_python_code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
ref: ${{ github.ref }}
- name: Blacken Python code
uses: jpetrucciani/black-check@master
with:
path: "."
black_flags: "--safe --verbose --diff"
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
env:
RUNNER_ALLOW_RUNASROOT: true
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Build the docker image
working-directory: ./app
run: docker build -f api/Dockerfile -t ccom-build:latest .
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Install dependencies and build Next.js app
run: |
npm install
npm run build
working-directory: app/next-client-app