-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (36 loc) · 1 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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