-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathheka-identity-service-verify.yml
More file actions
92 lines (79 loc) · 2.51 KB
/
Copy pathheka-identity-service-verify.yml
File metadata and controls
92 lines (79 loc) · 2.51 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Verify Heka Identity Service changes
on:
pull_request:
branches:
- main
paths:
- 'heka-identity-service/**'
- '.github/workflows/heka-identity-service-verify.yml'
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
permissions:
checks: write
pull-requests: write
contents: write
jobs:
verify:
defaults:
run:
working-directory: ./heka-identity-service
name: Build and check
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
env:
POSTGRES_DB: heka-identity-service
POSTGRES_USER: heka
POSTGRES_PASSWORD: heka1
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
with:
egress-policy: audit
- name: Prepare Github Runner
uses: pandaswhocode/initialize-github-job@ffb7446339e8e6007b942312ac95457d1a20b6cf # v1.0.4
with:
checkout: 'true'
checkout-ref: '${{ github.ref }}'
checkout-token: '${{ secrets.GITHUB_TOKEN }}'
setup-node: 'true'
node-version: '22'
- name: Enable Corepack
run: corepack enable
shell: bash
- name: Install dependencies
run: yarn install --immutable
shell: bash
- name: Run typecheck
run: yarn check-types
- name: Run ESLint
run: yarn lint
- name: Run tests
env:
FORCE_COLOR: 1
NODE_OPTIONS: --max-old-space-size=6144
MIKRO_ORM_HOST: localhost
MIKRO_ORM_PORT: 5432
MIKRO_ORM_USER: heka
MIKRO_ORM_PASSWORD: heka1
WALLET_POSTGRES_HOST: localhost
EXPRESS_HOST: localhost
FILE_STORAGE_FS_URL: http://localhost:3000
APP_ENDPOINT: http://localhost:3000
run: yarn test:coverage
- name: Report coverage
uses: davelosert/vitest-coverage-report-action@15b5b41bb7d36796d89f4bf482b09529c53f3446 # v2.9.2
with:
working-directory: ./heka-identity-service
json-summary-path: ./coverage/coverage-summary.json
json-final-path: ./coverage/coverage-final.json