-
Notifications
You must be signed in to change notification settings - Fork 361
50 lines (45 loc) · 1.5 KB
/
CI-typescript.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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more info see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
env:
folder_to_upload: dist/apps/dashboard
blob_account: responsibleai
blob_container: pullrequest
blob_path: ${{ github.event.pull_request.head.repo.full_name }}/${{ github.head_ref }}
on:
pull_request:
branches: [main]
jobs:
ci-typescript:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install yarn
run: npm install yarn -g
- name: CI
run: yarn ci
- name: Upload unit test code coverage
if: always()
uses: actions/upload-artifact@v3
with:
name: unit-test-coverage-${{ matrix.node-version }}
path: coverage
- name: Upload e2e test screen shot
if: always()
uses: actions/upload-artifact@v3
with:
name: e2e-screen-shot-${{ matrix.node-version }}
path: dist/cypress
- name: Upload yarn error
if: always()
uses: actions/upload-artifact@v3
with:
name: yarn-error.log-${{ matrix.node-version }}
path: yarn-error.log