-
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (36 loc) · 1.19 KB
/
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
name: build
on: [push] # runs on every push
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
node-version: [13.x]
steps:
- uses: actions/checkout@v1 # checkout latest commit
- name: Use Node.js ${{ matrix.node-version }} # set up Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies # runs the npm ci command to install all dependencies
run: npm ci
env:
CI: "true"
- name: Install ESLint # installs ESLint - idk why it doesn't pull this out of the devDependencies but whatever
run: npm i -D eslint
env:
CI: "true"
- name: Run ESLint # Runs ESLint on the project
run: npm run lint
env:
CI: "true"
# - name: Run Unit Tests # runs all unit tests
# run: npm test
# env:
# CI: "true"
# - name: Upload Coverage Report # runs the unit tests and uploads the coverage report from the unit tests to codecov.io
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# run: npx nyc --reporter=lcov npm run test && npx codecov -t $CODECOV_TOKEN