Skip to content

chore(deps): bump webpack and backstage-cli #123

chore(deps): bump webpack and backstage-cli

chore(deps): bump webpack and backstage-cli #123

Workflow file for this run

name: PR Checks and Tests
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
checks:
name: Checks
runs-on: ubuntu-latest
env:
CI: true
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v
- name: Set up Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version-file: .nvmrc
- name: yarn install
run: yarn install --immutable
- name: type checking and declarations
run: yarn tsc
- name: prettier
run: yarn prettier:check
- name: build all packages
run: yarn backstage-cli repo build --all
- name: publish check
run: yarn backstage-cli repo fix --check --publish
- name: test changed packages
run: yarn backstage-cli repo test --coverage --maxWorkers=3
- name: ensure clean working directory
run: |
if files=$(git ls-files --exclude-standard --others --modified) && [[ -z "$files" ]]; then
exit 0
else
echo ""
echo "Working directory has been modified:"
echo ""
git status --short
echo ""
git diff
exit 1
fi
tests:
name: Tests
runs-on: ubuntu-latest
env:
CI: true
COMMUNITY_PLUGINS_REPO_ARCHIVE: /tmp/community-plugins-repo.tar.gz
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v
- name: Set up Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
cache: 'yarn'
node-version-file: .nvmrc
- name: yarn install
run: yarn install --immutable
- name: run unit tests
run: yarn test
- name: Cache Backstage Community Repo
id: backstage-community-repo-cache
uses: actions/cache@v4
with:
path: ${{ env.COMMUNITY_PLUGINS_REPO_ARCHIVE }}
key: ${{ runner.os }}-backstage-community-repo
- name: run e2e tests
run: yarn test:e2e