-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (48 loc) · 1.7 KB
/
Copy pathci.yml
File metadata and controls
53 lines (48 loc) · 1.7 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
name: CI
"on":
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
runs-on: ubuntu-24.04
timeout-minutes: 20
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- run: docker run --rm -v "$PWD:/repo" zricethezav/gitleaks:v8.30.1@sha256:c00b6bd0aeb3071cbcb79009cb16a60dd9e0a7c60e2be9ab65d25e6bc8abbb7f detect --source=/repo --no-git --redact --exit-code=1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
node-version-file: .nvmrc
cache: npm
- run: npm ci
- run: npm run typecheck
- run: npm run lint
- run: npm run format:check
- run: npm test
- run: npm run build
- run: npm audit --audit-level=high
- run: npm audit --omit=dev --audit-level=high
- run: docker compose -f compose.yaml config --quiet
env:
ZECHLEDGER_ADMIN_TOKEN: ci-${{ github.run_id }}-${{ github.run_attempt }}-validation
- run: docker compose -f compose.yaml -f compose.z3-testnet.yaml config --quiet
env:
ZECHLEDGER_ADMIN_TOKEN: ci-${{ github.run_id }}-${{ github.run_attempt }}-validation
container:
runs-on: ubuntu-24.04
timeout-minutes: 25
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c
- uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a
with:
context: .
push: false
tags: zechledger:ci
cache-from: type=gha
cache-to: type=gha,mode=max