-
-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (36 loc) · 889 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
name: Build and Test
on:
pull_request:
branches:
-master
paths:
- 'src/**/*.ts'
- 'global/**/*.js'
- 'test/*'
- '.eslintrc.js'
- 'package-lock.json'
- 'tsconfig.json'
- 'typedoc.json'
- 'webpack.config.js'
- '.github/**/*.js'
workflow_dispatch:
push:
jobs:
build:
runs-on: ubuntu-latest
name: Build and test
steps:
- uses: actions/checkout@v2
- name: NPM Install
uses: actions/cache@v2
with:
path: ~/.npm
key: lock-npm-deps-${{ hashFiles('**/package-lock.json') }}
restore-keys: lock-npm-deps-
- name: Install Dependencies
run: npm ci
- name: Test
env:
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
run: npm test