-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1.07 KB
/
run-tests.yml
File metadata and controls
52 lines (41 loc) · 1.07 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
name: Test and E2E tests on PR
run-name: Run tests and E2E tests on PR
on:
pull_request:
branches:
- main
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Set Yarn Version
run: corepack prepare yarn@4.4.1 --activate
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- run: yarn install
- run: yarn backstage-cli repo test
run-e2e-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Set Yarn Version
run: corepack prepare yarn@4.4.1 --activate
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies
run: yarn install
- name: Run E2E tests
env:
PLAYWRIGHT_URL: http://localhost:3000
CI:
run: |
yarn test:e2e