-
Notifications
You must be signed in to change notification settings - Fork 22
55 lines (54 loc) · 1.29 KB
/
ci.yml
File metadata and controls
55 lines (54 loc) · 1.29 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
name: CI
on:
pull_request:
types: [opened]
branches:
- development
- master
jobs:
test:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: "yarn"
- run: |
mv sample.env .env
- run: docker compose pull test-db
- run: yarn
- run: npm t
yarn-build:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: "yarn"
- run: yarn
- run: npm run front-end:build
- run: npm run back-end:build
pre-commit:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: "yarn"
- run: yarn
- run: pip install pre-commit
- run: pre-commit run --all-files -v
commitlint:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v2