-
Notifications
You must be signed in to change notification settings - Fork 14
55 lines (52 loc) · 1.45 KB
/
web.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
55
name: Web-based builds
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build-javascript:
name: Build legacy JavaScript apps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
src:
- 'package.json'
- 'turbo.json'
- 'yarn.lock'
- 'packages/**'
- uses: actions/setup-node@v2
with:
node-version: '18.9.0'
if: steps.changes.outputs.src == 'true'
- name: restore caches
uses: actions/cache@v2
if: steps.changes.outputs.src == 'true'
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
if: steps.changes.outputs.src == 'true'
run: yarn
- name: Run tests
run: yarn run test
if: steps.changes.outputs.src == 'true'
- name: Run builds
run: yarn run build
if: steps.changes.outputs.src == 'true'
- name: Upload tremolo-plugin-frontend build
uses: actions/upload-artifact@v2
if: steps.changes.outputs.src == 'true'
with:
name: tremolo-plugin-frontend
path: ./packages/tremolo-plugin-frontend/build