-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (56 loc) · 1.66 KB
/
integration-tests.yml
File metadata and controls
70 lines (56 loc) · 1.66 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
name: Integration Tests
on:
push:
branches: ["*"]
pull_request:
branches: ["*"]
repository_dispatch:
types: [fundamento-standalone-image-published]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
integration-tests:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip-tests]')"
permissions:
contents: read
checks: write
env:
FUNDAMENTO_VERSION: ${{ github.event.client_payload.version || 'latest' }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js 24.x
uses: actions/setup-node@v4
with:
node-version: 24.x
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Start test stack
run: npm run test:integration:up
- name: Run integration tests
run: npm run test:integration
continue-on-error: true
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: integration-test-results
path: tmp/integration-results.xml
retention-days: 30
- name: Publish test report
if: always()
uses: mikepenz/action-junit-report@v5
with:
report_paths: tmp/integration-results.xml
check_name: Integration Test Results
summary: true
detailed_summary: true
fail_on_failure: true
- name: Stop test stack
if: always()
run: npm run test:integration:down
- name: Dump Docker logs on failure
if: failure()
run: docker compose -p fundamento-cli logs --tail=200