-
-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (33 loc) · 1.19 KB
/
Copy pathci-testing-pr.yml
File metadata and controls
41 lines (33 loc) · 1.19 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
name: Tests with Allure Report
on:
pull_request:
branches: [main]
permissions:
pull-requests: write
checks: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Setup Apollo Git Bot
id: bot-token
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.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: 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: Run Allure Action
uses: allure-framework/allure-action@c24234151c027cfee99e00eb6ec2dac1eb350414 # v0.6.6
with:
report-directory: "./allure-report"
github-token: ${{ steps.bot-token.outputs.token }}