[beam] use two-column layout for beam filters #584
This file contains 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: Tests | |
on: | |
push: | |
branches: [development] | |
pull_request: | |
jobs: | |
changes: | |
name: Check for changes | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: read | |
outputs: | |
packages: ${{ steps.filter.outputs.changes }} | |
steps: | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
aform: aform/** | |
atable: atable/** | |
beam: beam/** | |
test: | |
name: ${{ matrix.package }} | |
needs: changes | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
package: ${{ fromJSON(needs.changes.outputs.packages) }} | |
include: | |
- branch: development | |
artifact: development | |
- branch: ${{ github.head_ref }} | |
artifact: pull-request | |
permissions: | |
# Required to checkout the code | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ matrix.branch }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache-dependency-path: '**/config/rush/pnpm-lock.yaml' | |
registry-url: https://registry.npmjs.org/ | |
- name: Rush Install | |
run: node common/scripts/install-run-rush.js install | |
- name: Rush Build | |
run: node common/scripts/install-run-rush.js rebuild --verbose | |
- name: Run Tests | |
working-directory: ./${{ matrix.package }} | |
run: node ../common/scripts/install-run-rushx.js test:coverage | |
- name: Upload Coverage | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-${{ matrix.package }}-${{ matrix.artifact }} | |
path: coverage | |
coverage: | |
name: ${{ matrix.package }} | |
needs: test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
package: ${{ fromJSON(needs.changes.outputs.packages) }} | |
steps: | |
- name: Download PR Branch Coverage | |
uses: actions/download-artifact@v4 | |
with: | |
name: coverage-${{ matrix.package }}-pull-request | |
path: coverage | |
- name: Download Base Branch Coverage | |
uses: actions/download-artifact@v4 | |
with: | |
name: coverage-${{ matrix.package }}-development | |
path: coverage-${{ matrix.package }}-development | |
- name: Report Coverage | |
uses: davelosert/vitest-coverage-report-action@v2 | |
with: | |
working-directory: ./${{ matrix.package }} | |
file-coverage-mode: 'all' | |
vite-config-path: './vite.config.ts' | |
json-summary-compare-path: coverage-${{ matrix.package }}-development/coverage-summary.json |