forked from RoadieHQ/roadie-backstage-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (36 loc) · 877 Bytes
/
e2e-tests.yml
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
name: E2E Test On PR
on:
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
env:
CI: true
NODE_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Log node version
run: node --version
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Install dependencies
run: yarn install
- name: Lint
run: yarn lint
- name: Run tsc
run: yarn tsc
- name: Run build
run: yarn build
- name: Cypress run
uses: cypress-io/github-action@v2
with:
start: yarn dev:ci
wait-on: 'http://localhost:3000'
project: ./packages/app
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}