-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (37 loc) · 1021 Bytes
/
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
38
39
name: CI
run-name: CI on ${{ github.ref_type}} ${{ github.ref_name }}
on: push
jobs:
api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10.10"
- name: Build
run: docker build . --file ./docker/api/Dockerfile --tag api:${{ github.sha }}
- name: Install Poetry Dependencies
run: |
cd board/api
pip install -U pip
pip install poetry
poetry install --only main
env:
POETRY_VIRTUALENVS_CREATE: false
- name: Lint
run: |
cd board/api
flake8 --config .flake8 .
frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: docker build . --file ./docker/frontend/Dockerfile --tag frontend:${{ github.sha }}
- name: Lint
run: |
cd board/frontend
npm i --save-dev
npx eslint .