Skip to content

Merge pull request #459 from openforis/records-list-create-record #753

Merge pull request #459 from openforis/records-list-create-record

Merge pull request #459 from openforis/records-list-create-record #753

Workflow file for this run

name: Build
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: actions/setup-node@v1
with:
node-version: '16.18.0'
always-auth: true
token: ${{secrets.ACCESS_TOKEN}}
registry-url: 'https://npm.pkg.github.com'
scope: '@openforis'
env:
ACCESS_TOKEN: $${{secrets.ACCESS_TOKEN}}
- name: Install
run: yarn
env:
NODE_AUTH_TOKEN: ${{secrets.ACCESS_TOKEN}}
- name: Run Tests
run: yarn test
env:
TEST_PASSWORD: 'TEST_PASSWORD'
- 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 }}