-
Notifications
You must be signed in to change notification settings - Fork 11
88 lines (67 loc) · 2.1 KB
/
chart.yaml
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Test chart build
on: [push, pull_request]
defaults:
run:
working-directory: ./chart
jobs:
build:
if: ${{(github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Cache files
uses: actions/cache@v2
with:
path: |
~/.rustup
~/.cargo
~/.local/lib/python*/
**/node_modules
**/target
key: ${{ runner.os }}-${{ hashFiles('**/package.json', '**/Cargo.toml') }}
- name: Versions
run: |
npm -v
node -v
- name: Install python build dependencies
run: python3 -m pip install setuptools wheel
- name: Install rustup
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Build all
run: make
- name: Check that no files are overwritten
run: git diff --exit-code
test:
if: ${{(github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./chart/chart
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install esbuild
run: cd javascript && npm i esbuild
- name: Install testing requirements
run: pip install -r requirements_tests.txt
- name: Build
run: make javascript/dist/sseq_chart_node.js
- name: Test
run: pytest tests python/tests
clean:
if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Make clean does not remove commited files
run: make clean && git diff --exit-code