-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.21 KB
/
agent.yml
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
name: Sigyn Agent
on:
push:
branches: [main]
pull_request:
paths:
- "package-lock.json"
- "src/agent/**"
- ".github/workflows/agent.yml"
- "!src/agent/**/*.md"
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
fail-fast: false
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: ${{ matrix.node-version }}
- name: Unit tests
uses: Wandalen/wretry.action@6feedb7dedadeb826de0f45ff482b53b379a7844 # v3.5.0
with:
command: npm ci && npm run build && npm run test --workspace=src/agent
attempt_limit: 3
- name: Install dependencies
run: npm ci
- name: Build packages
run: npm run build
- name: Run e2e tests
run: npm run test:e2e --workspace=src/agent