-
-
Notifications
You must be signed in to change notification settings - Fork 19
127 lines (113 loc) · 4.15 KB
/
tests.yaml
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
name: Cypress Tests
on:
push:
branches:
- "main"
pull_request:
branches:
- main
# TODO - there are improvements that can be made here in terms of caching
# https://docs.cypress.io/guides/continuous-integration/github-actions
# Keeping it simple for the beginning
jobs:
ui-chrome-tests:
if: ${{ github.event.pull_request.head.repo.full_name == 'PCSX2/pcsx2-net-www' && github.actor != 'dependabot[bot]' }}
name: "Chrome"
timeout-minutes: 15
runs-on: ubuntu-latest
container:
image: xtvaser/cypress-with-hugo:node14.17.0-chrome91-ff89
steps:
- name: Checkout
uses: actions/checkout@v4
# TODO - temporarily bypassed
# - name: "UI Tests - Chrome"
# uses: cypress-io/github-action@v2
# with:
# start: npm run hugo
# working-directory: tests
# wait-on: "http://localhost:1313"
# wait-on-timeout: 120
# browser: chrome
# record: true
# env:
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# # Recommended: pass the GitHub token lets this action correctly
# # determine the unique run id necessary to re-run the checks
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ui-chrome-tests-fork:
if: ${{ github.event.pull_request.head.repo.full_name != 'PCSX2/pcsx2-net-www' || github.actor == 'dependabot[bot]'}}
name: "Chrome | No Recording"
timeout-minutes: 15
runs-on: ubuntu-latest
container:
image: xtvaser/cypress-with-hugo:node14.17.0-chrome91-ff89
steps:
- name: Checkout
uses: actions/checkout@v4
# TODO - temporarily bypassed
# - name: "UI Tests - Chrome"
# uses: cypress-io/github-action@v2
# with:
# start: npm run hugo
# working-directory: tests
# wait-on: "http://localhost:1313"
# wait-on-timeout: 120
# browser: chrome
# record: false
# env:
# # Recommended: pass the GitHub token lets this action correctly
# # determine the unique run id necessary to re-run the checks
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ui-firefox-tests:
if: ${{ github.event.pull_request.head.repo.full_name == 'PCSX2/pcsx2-net-www' && github.actor != 'dependabot[bot]' }}
name: "Firefox"
timeout-minutes: 15
runs-on: ubuntu-latest
container:
image: xtvaser/cypress-with-hugo:node14.17.0-chrome91-ff89
options: --user 1001
steps:
- name: Checkout
uses: actions/checkout@v4
# TODO - temporarily bypassed
# - name: "UI Tests - Firefox"
# uses: cypress-io/github-action@v2
# with:
# start: npm run hugo
# working-directory: tests
# wait-on: "http://localhost:1313"
# wait-on-timeout: 120
# browser: firefox
# record: true
# env:
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# # Recommended: pass the GitHub token lets this action correctly
# # determine the unique run id necessary to re-run the checks
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ui-firefox-tests-fork:
if: ${{ github.event.pull_request.head.repo.full_name != 'PCSX2/pcsx2-net-www' || github.actor == 'dependabot[bot]' }}
name: "Firefox | No Recording"
timeout-minutes: 15
runs-on: ubuntu-latest
container:
image: xtvaser/cypress-with-hugo:node14.17.0-chrome91-ff89
options: --user 1001
steps:
- name: Checkout
uses: actions/checkout@v4
# TODO - temporarily bypassed
# - name: "UI Tests - Firefox"
# uses: cypress-io/github-action@v2
# with:
# start: npm run hugo
# working-directory: tests
# wait-on: "http://localhost:1313"
# wait-on-timeout: 120
# browser: firefox
# record: false
# env:
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# # Recommended: pass the GitHub token lets this action correctly
# # determine the unique run id necessary to re-run the checks
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}