Skip to content

Commit

Permalink
Merge pull request #672 from wmde/single-bc-check
Browse files Browse the repository at this point in the history
Add single BC check for labeled PRs
  • Loading branch information
moiikana authored Dec 18, 2024
2 parents e5853cd + fb3c5ff commit caf8bcf
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/bc-check-on-label-change.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .github/workflows/daily-bc-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
- cron: "0 0 * * *"

jobs:
bc-check:
daily-bc-check:
runs-on: ubuntu-latest

strategy:
Expand Down

0 comments on commit caf8bcf

Please sign in to comment.