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