-
Notifications
You must be signed in to change notification settings - Fork 21
43 lines (35 loc) · 1.15 KB
/
build-and-tests.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
name: Run build and tests
on:
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }} and run build and tests 🔧
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn build:storybook
- run: yarn build
- run: yarn test
- name: Fix code coverage paths on React 🩹
working-directory: ./packages/react-ds/coverage
run: |
sed -i 's/\/home\/runner\/work\/venice\/venice\//\/github\/workspace\//g' lcov.info
- name: Fix code coverage paths on Vue 🩹
working-directory: ./packages/vue-ds/coverage
run: |
sed -i 's/\/home\/runner\/work\/venice\/venice\//\/github\/workspace\//g' lcov.info
- name: SonarCloud Scan 🚨
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.DEPLOY_GHPAGES }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}