-
Notifications
You must be signed in to change notification settings - Fork 39
52 lines (49 loc) · 1.31 KB
/
ci.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
48
49
50
51
52
name: rxjs-fruits CI Pipeline
on:
push:
branches-ignore:
- "gh-pages"
jobs:
cypress-run:
runs-on: ubuntu-latest
container: cypress/browsers:node14.16.0-chrome89-ff77
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '15'
- name: Cypress run
uses: cypress-io/[email protected]
with:
build: npm run build
start: npm start
wait-on: 'http://localhost:4200'
wait-on-timeout: 180
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Artefakte hochladen
uses: actions/upload-artifact@v2
with:
name: cypress-videos
path: ./cypress/videos/
deploy:
runs-on: ubuntu-latest
needs: [cypress-run]
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '15'
- run: npm install
- run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GH_TOKEN }}
publish_dir: ./docs