diff --git a/.github/workflows/bc-check-on-label-change.yaml b/.github/workflows/bc-check-on-label-change.yaml new file mode 100644 index 000000000..1c2a837d0 --- /dev/null +++ b/.github/workflows/bc-check-on-label-change.yaml @@ -0,0 +1,28 @@ +name: BC check for all banners on "Ready for review" label +#Check backwards compatibility for all Banners whenever "Ready for review" label is added to a pull request +on: + pull_request: + types: [ labeled ] + +jobs: + bc-check: + if: ${{ github.event.label.name == 'Ready for review' }} + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + # Node version should be in sync with the version in the package.json and build.yml + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + # Install packages, exact versions from package-lock.json + - run: npm ci + # Run test case that runs unit tests for all banners + - run: npm run test:all-banners diff --git a/.github/workflows/daily-bc-check.yaml b/.github/workflows/daily-bc-check.yaml index 9a2fce909..c2b81ba67 100644 --- a/.github/workflows/daily-bc-check.yaml +++ b/.github/workflows/daily-bc-check.yaml @@ -4,7 +4,7 @@ on: - cron: "0 0 * * *" jobs: - bc-check: + daily-bc-check: runs-on: ubuntu-latest strategy: