Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Commit e696ab0

Browse files
committed
Enable CI
1 parent dd4910b commit e696ab0

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Build
4+
5+
# Controls when the action will run. Triggers the workflow on push or pull request
6+
# events but only for the master branch
7+
on:
8+
push:
9+
branches: [ master ]
10+
pull_request:
11+
branches: [ master ]
12+
13+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
14+
jobs:
15+
# This workflow contains a single job called "build"
16+
build:
17+
# The type of runner that the job will run on
18+
runs-on: ubuntu-latest
19+
20+
# Steps represent a sequence of tasks that will be executed as part of the job
21+
steps:
22+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23+
- uses: actions/checkout@v2
24+
25+
- name: Cache
26+
uses: actions/cache@v1
27+
env:
28+
cache-name: cache-node-modules-v1
29+
with:
30+
# A directory to store and save the cache
31+
path: ~/.cache/yarn
32+
# An explicit key for restoring and saving the cache
33+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('package.json') }}
34+
35+
- name: Use Node.js
36+
uses: actions/setup-node@v1
37+
with:
38+
node-version: '12.x'
39+
- name: Install dependencies
40+
run: yarn
41+
- name: Build the project
42+
run: yarn ci:all
43+
- name: Upload code coverage report
44+
env:
45+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
46+
run: yarn codecov --disable=gcov

0 commit comments

Comments
 (0)