-
Notifications
You must be signed in to change notification settings - Fork 10
59 lines (49 loc) · 1.34 KB
/
test.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
56
57
58
59
name: Test
on:
push:
branches: [develop, main]
pull_request:
jobs:
sonar-acitons:
name: Scan project by Sonar Cloud
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Action
uses: ./.github/actions/setup
- name: Install Dependencies
run: yarn
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
unit-tests-web:
name: Run unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Action
uses: ./.github/actions/setup
- name: Install Dependencies
run: yarn
- name: Run Test
run: yarn workspace @gnoswap-labs/web test:ci
build-tests:
name: Run build tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- run: yarn
- run: yarn workspace @gnoswap-labs/web build
# TODO: Apply when you're done setting up your storybook environment
# storybook-tests:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: ./.github/actions/setup
# - run: yarn workspace @gnoswap-labs/web test-storybook