forked from coderetreat/coderetreat.org
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (35 loc) · 1017 Bytes
/
build.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
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Setup
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: 'npm'
- run: npm ci
- name: Prepare Test Data to be included in build
run: npm run cypress:seed
- name: Build JavaScript
run: npm run build
- uses: cypress-io/[email protected] # use the explicit version number
with:
start: npm run serve
wait-on: "http://localhost:4000"
install: false
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
- uses: actions/upload-artifact@v3
if: always()
with:
name: cypress-videos
path: cypress/videos