Remove ng modules #4118
Workflow file for this run
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: ci | |
on: | |
push: | |
branches: [main, v2] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
changes: | |
runs-on: ubuntu-20.04 | |
permissions: | |
pull-requests: read | |
outputs: | |
projects: ${{ steps.filter.outputs.changes }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
buf-ng: angular/** | |
buf-astro: astro/** | |
buf-express: express/** | |
buf-fastify: fastify/** | |
buf-nextjs: nextjs/** | |
buf-plain: plain/** | |
buf-esbuild: react/esbuild/** | |
buf-parcel: react/parcel/** | |
buf-rollup: react/rollup/** | |
buf-vite: react/vite/** | |
buf-webpack: react/webpack/** | |
buf-webpack-cjs: react/webpack-cjs/** | |
buf-react-native: react-native/** | |
buf-remix: remix/** | |
buf-svelte: svelte/** | |
buf-vanilla-node: vanilla-node/** | |
buf-vue: vue/** | |
buf-cloudflare-workers: cloudflare-workers/** | |
buf-custom-client: custom-client/** | |
bundle-size: bundle-size/** | |
ci: | |
needs: changes | |
if: ${{ needs.changes.outputs.projects != '' && toJson(fromJson(needs.changes.outputs.projects)) != '[]' }} | |
strategy: | |
matrix: | |
project: ${{ fromJSON(needs.changes.outputs.projects) }} | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Slightly fragile since it runs on the default node version | |
# but until setup-node supports corepack (https://github.com/actions/setup-node/issues/531) | |
# this is our best option | |
- name: Enable core pack | |
run: | | |
corepack enable | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Run CI | |
run: node manage.mjs ci ${{ matrix.project }} | |
- name: Check Diff | |
id: checkdiff | |
run: | | |
[[ -z $(git status --porcelain | tee /dev/stderr) ]] || exit 1 | |