chore: add missing code from #559 (#561) #2252
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |