forked from indic-transliteration/sanscript.js
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (54 loc) · 1.69 KB
/
pull-request-prerelease.yml
File metadata and controls
68 lines (54 loc) · 1.69 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
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Pull Request (Prerelease)
# to run tasks that would need to run before releasing
on:
push:
branches:
- master # run on pushed commits to `master`
pull_request:
branches:
- master # run on pull requests to `master`
jobs:
prerelease:
runs-on: ubuntu-latest
name: Run prerelease scripts
strategy:
matrix:
node-version:
- 10.x
- 12.x
- 14.x
steps:
- uses : actions/checkout@v2
with:
submodules: true
fetch-depth: 1
- name : Use Node.js version ${{ matrix.node-version }}
uses : actions/setup-node@v2
with :
node-version: ${{ matrix.node-version }}
- name : Load node-modules cache
uses : actions/cache@v2
env :
cache-name: cache-node-modules
with :
path: ~/.npm
key: ${{ runner.os }}-${{ matrix.node-version }}-prerelease-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}-prerelease-${{ env.cache-name }}-
${{ runner.os }}-${{ matrix.node-version }}-prerelease-
${{ runner.os }}-
- name : Install dependencies
run : 'npm install'
# The below steps are basically `npm run prepare`
# split out to improve visibility in case we need
# to debug.
- name : Run linting
run : 'npm run lint'
- name : Run validation
run : 'npm run validate'
- name : Build dist build
run : 'npm run build'
- name : Run transpilation
run : 'npm run transpile'
- name : Run tests
run : 'npm run test'