Skip to content

Remove RCP feature flag (#2307) #7339

Remove RCP feature flag (#2307)

Remove RCP feature flag (#2307) #7339

Workflow file for this run

name: build
on:
pull_request:
branches:
- develop
- master
push:
branches:
- develop
- master
jobs:
tests:
name: tests
runs-on: ubuntu-latest
env:
TZ: Europe/London
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Install node
uses: actions/setup-node@v1
with:
node-version: '22.x'
- name: Install NPM
run: npm install -g npm@11.5.1
- name: Install dependencies
run: npm ci --workspaces --include=dev --include-workspace-root
- name: Shai-hulud scan
uses: gensecaihq/Shai-Hulud-2.0-Detector@v2
with:
working-directory: '.'
scan-lockfiles: true
- name: Run tests
run: npm run test
- name: Fix code coverage paths
working-directory: ./coverage
run: |
sed -i 's/\/home\/runner\/work\/rod-licensing\/rod-licensing\//\/github\/workspace\//g' lcov.info
- name: SonarCloud Scan
uses: sonarsource/sonarqube-scan-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
new-version:
name: new-version
runs-on: ubuntu-latest
needs: tests
if: ${{ github.event_name == 'push' }}
permissions:
contents: write
id-token: write
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v1
with:
node-version: '22.x'
- name: Install NPM
run: npm install -g npm@11.5.1
- name: Install dependencies
run: npm ci --workspaces --include-workspace-root
- name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
id: extract_branch
- name: Run versioning script
run: . ./scripts/github/deploy.sh
env:
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
BRANCH: ${{ steps.extract_branch.outputs.branch }}
HUSKY: 0