-
Notifications
You must be signed in to change notification settings - Fork 14
69 lines (56 loc) · 1.52 KB
/
integration.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Check integration
on:
pull_request:
branches:
- master
paths-ignore:
- '**.md'
- '**.*ignore'
- '**.env*'
- renovate.json
- docker-compose.yaml
- '**deployment.yaml'
jobs:
validate-pr-title:
name: Validate PR title
runs-on: ubuntu-22.04
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
integration:
name: Continuous integration checks
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Setup pnpm
uses: pnpm/[email protected]
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Check code formatting
run: pnpm check:format
- name: Check code typing
run: pnpm check:types
- name: Check code linting
run: pnpm check:lint
- name: Test project
run: pnpm test
- name: Build Docker image for project
uses: docker/build-push-action@v5
with:
push: false
cache-from: type=gha
cache-to: type=gha,mode=max