-
-
Notifications
You must be signed in to change notification settings - Fork 5
58 lines (48 loc) · 1.79 KB
/
ci-testing-main.yml
File metadata and controls
58 lines (48 loc) · 1.79 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
name: Tests with Allure Report
on:
push:
branches: [main]
permissions:
checks: write
contents: write
pull-requests: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Setup Apollo Git Bot
id: bot-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
app-id: ${{ secrets.STUDIOCMS_GIT_BOT_APP_ID }}
private-key: ${{ secrets.STUDIOCMS_GIT_BOT_PRIVATE_KEY }}
- name: Checkout Repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
token: ${{ steps.bot-token.outputs.token }}
- name: Checkout History branch
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: test-history
path: test-history
persist-credentials: false
token: ${{ steps.bot-token.outputs.token }}
- name: Install Tools & Dependencies
uses: withstudiocms/automations/.github/actions/install@274ff117aae1034c6b4d37f545268c96a7604077 # main
- name: Build packages
run: pnpm ci:build
- name: Run tests and generate report
run: pnpm ci:test
- name: Deploy Allure Report to GitHub Pages
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
with:
github_token: ${{ steps.bot-token.outputs.token }}
publish_branch: test-report
publish_dir: ./allure-report
- name: Upload History file
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
with:
github_token: ${{ steps.bot-token.outputs.token }}
publish_branch: test-history
publish_dir: ./test-history