-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (70 loc) · 2.33 KB
/
test-e2e.yml
File metadata and controls
80 lines (70 loc) · 2.33 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
# SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
# SPDX-License-Identifier: MIT
name: Test E2E
on:
push:
branches:
- main
permissions:
contents: read
jobs:
sync-to-confluence:
environment: production
name: Sync Docs to Confluence
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v6
- name: Sync Docs
id: sync-docs
uses: ./
with:
mode: id
docs-dir: '.'
confluence-notice-message: 'This page is automatically generated from content in the <a href="https://github.com/Telefonica/markdown-confluence-sync-action" target="_blank">markdown-confluence-sync-action repository</a> Changes made manually will be lost, you should edit this page in Github instead.'
files-pattern: '*.md'
files-metadata: |
[
{
"path": "README.md",
"id": "${{ secrets.CONFLUENCE_README_PAGE_ID }}",
"title": "[Cross] [Markdown Confluence Sync] Github action"
},
{
"path": "CHANGELOG.md",
"id": "${{ secrets.CONFLUENCE_CHANGELOG_PAGE_ID }}",
"title": "[Cross] [Markdown Confluence Sync] [Github action] Releases"
}
]
confluence-url: ${{ secrets.CONFLUENCE_URL }}
confluence-space-key: ${{ secrets.CONFLUENCE_SPACE_KEY }}
confluence-authentication: |
{
"oauth2": {
"accessToken": "${{ secrets.CONFLUENCE_PAT }}"
}
}
rehype: |
{
"codeBlocks": true
}
log-level: debug
test-e2e:
environment: production
name: Test E2E
runs-on: ubuntu-latest
needs: sync-to-confluence
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v6
- uses: ./.github/actions/setup-node
id: setup-node
- name: Run E2E Tests
run: npm run test:e2e
env:
CONFLUENCE_URL: ${{ secrets.CONFLUENCE_URL }}
CONFLUENCE_PAT: ${{ secrets.CONFLUENCE_PAT }}
CONFLUENCE_README_PAGE_ID: ${{ secrets.CONFLUENCE_README_PAGE_ID }}
CONFLUENCE_CHANGELOG_PAGE_ID: ${{ secrets.CONFLUENCE_CHANGELOG_PAGE_ID }}