7 types: [opened, synchronize, reopened]
12 runs-on: ubuntu-latest
15 node-version: [14.x, 16.x]
17 - uses: actions/checkout@v2
19 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
20 - name: Use Node.js ${{ matrix.node-version }}
21 uses: actions/setup-node@v2
23 node-version: ${{ matrix.node-version }}
28 continue-on-error: true
33 - name: npm run coverage
35 - name: SonarCloud Scan
36 if: "github.repository == 'jerome-benoit/charging-stations-simulator' && matrix.node-version == '14.x'"
37 uses: SonarSource/sonarcloud-github-action@master
39 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
40 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
42 runs-on: ubuntu-latest
44 - uses: actions/checkout@v2
45 - name: Set up Docker Buildx
47 uses: docker/setup-buildx-action@v1
48 - name: Build docker image
51 make SUBMODULES_INIT=false