-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (34 loc) · 932 Bytes
/
code-checks.yaml
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
40
41
42
43
name: code checks
on:
workflow_dispatch:
pull_request:
branches:
- main
workflow_call:
inputs:
branch_ref:
type: string
required: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.branch_ref }}
cancel-in-progress: true
jobs:
run-checks:
timeout-minutes: 20
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ inputs.branch_ref }}
- name: pull containers
# postgresql is dependency of backend-utils
run: docker compose pull postgresql
- name: build containers
run: docker compose --profile dev build backend-utils frontend-utils
- name: check code formatting
run: ./bin/check-code-formatting.sh
- name: check types
run: ./bin/check-code-semantics.sh
- name: run tests
run: ./bin/run-tests.sh