-
Notifications
You must be signed in to change notification settings - Fork 9
54 lines (53 loc) · 1.42 KB
/
ci.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
42
43
44
45
46
47
48
49
50
51
52
53
54
name: CI
on:
push:
paths:
- 'plugin/**'
- '.github/workflows/ci.yml'
pull_request:
paths:
- 'plugin/**'
- '.github/workflows/ci.yml'
jobs:
setup:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@ce177499ccf9fd2aded3b0426c97e5434c2e8a73
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Get Latest
uses: actions/setup-node@v1
with:
node-version: 14.x
- uses: actions/checkout@v2
- name: Restore Dependency Cache
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.OS }}-dependency-cache-${{ hashFiles('**/package.json') }}
- name: Get Package Version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
with:
path: core/
verify-plugin:
runs-on: ubuntu-latest
timeout-minutes: 30
needs:
- setup
steps:
- uses: actions/setup-node@v1
with:
node-version: 16.x
- uses: actions/checkout@v2
- name: Restore Dependency Cache
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.OS }}-dependency-cache-${{ hashFiles('**/package.json') }}
- run: npm install
working-directory: plugin
- run: npm run build
working-directory: plugin