Merge pull request #542 from unknownskl/dependabot/npm_and_yarn/relea… #322
This file contains hidden or 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: Build/release | |
| on: | |
| push: | |
| branches: | |
| - '*' | |
| - 'feature/*' | |
| - 'release/*' | |
| tags: | |
| - v* | |
| pull_request: | |
| branches: | |
| - main | |
| # env: | |
| # DEBUG: '*' | |
| jobs: | |
| release: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [macos-latest, ubuntu-latest, windows-latest] | |
| steps: | |
| - name: Checkout Git repository | |
| uses: actions/[email protected] | |
| with: | |
| fetch-depth: 0 | |
| submodules: recursive | |
| - name: Setup Node.js | |
| uses: actions/[email protected] | |
| with: | |
| node-version: 22 | |
| - name: SonarCloud Scan | |
| uses: SonarSource/[email protected] | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| with: | |
| args: > | |
| -Dsonar.organization=unknownskl-github | |
| -Dsonar.projectKey=unknownskl_xbox-webapi-node | |
| -Dsonar.sources=./src | |
| if: matrix.os == 'ubuntu-latest' | |
| - name: Install npm dependencies | |
| run: npm ci | |
| - name: Build project | |
| run: npm run build | |
| - name: Run NodeJS Tests | |
| run: npm run test | |
| # - name: Set release version | |
| # run: python3 -c "import os; tag = os.environ['GITHUB_REF'].split('/')[-1]; f = open(os.environ['GITHUB_ENV'], 'a'); f.write('RELEASE_VERSION='+tag); f.close();" |