-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (47 loc) · 1.34 KB
/
functionnalTests.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
name: 'functionnal tests'
on:
push:
branches:
- "cd_ci"
- "dev"
jobs:
functionnalTestsPython:
name: 'Does it run?'
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: install requirements
run: cd src; pip3 install -r requirements.txt
- name: launch transpiler
run: python3 ./src/main.py ../tests/react ../tests/svelte/src > result.txt 2>> result.txt
- name: load failure artifact
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: pythonErrorReport.txt
path: ./result.txt
- name: load succes artifact
if: ${{ success() }}
uses: actions/upload-artifact@v2
with:
name: pythonSuccessReport.txt
path: ./result.txt
functionnalTestsSvelte:
name: 'Do components work?'
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: check svelte files
run: cd tests/svelte; npm i; npm run test &> result.txt
- name: 'load tests artifact'
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: rendering_tests_output.txt
path: ./tests/svelte/result.txt