Liuboff/History of search queries and ability to delete previous search result #12931
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: Lint, build and test | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
- '*' | |
pull_request: | |
branches: [ develop ] | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Pull the source code to GitHub workspace | |
uses: actions/checkout@v4 | |
- name: Set up Node environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install | |
- name: Run lint | |
if: ${{ success() }} | |
run: yarn run lint | |
- name: Run build | |
run: yarn run build | |
- name: Run tests | |
if: ${{ success() }} | |
run: yarn run test | |
sonarcloud: | |
name: SonarCloud | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install | |
- name: Test and coverage | |
run: yarn run test:coverage | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |