This repository was archived by the owner on May 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (46 loc) · 1.41 KB
/
build.yml
File metadata and controls
56 lines (46 loc) · 1.41 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
53
54
55
name: HackMerced Build CI
on:
pull_request:
# Sequence of patterns matched against refs/heads
branches:
- bug/* # Push events to branches matching refs/heads/bug/*
- feature/* # Push events to branches matching refs/heads/feature/*
- develop # Push events to branches matching refs/heads/develop
- master # Push events to branches matching refs/heads/master
# Sequence of patterns matched against refs/tags
tags:
- v0.x # Push events to v0.x tags
- v1.x # Push events to v1.x tags
jobs:
build:
name: Test application and make sure it runs on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [11.x]
os: [ubuntu-latest]
steps:
- name: Checkout to current branch
uses: actions/checkout@v2
- name: Configure Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Setup
run: |
echo 'Running Setup...'
yarn setup
- name: Test Server
env:
NODE_ENV: ${{ secrets.NODE_ENV }}
PORT: ${{ secrets.PORT }}
MONGO_URI_TESTS: ${{ secrets.MONGO_URI_TESTS }}
CI: true
run: |
echo 'Testing Server routes'
yarn test
- name: Build React
run: |
echo 'Building React Application...'
cd client
yarn build