Skip to content

chore(examples): add examples #6

chore(examples): add examples

chore(examples): add examples #6

Workflow file for this run

name: examples
on:
pull_request:
branches:
- main
jobs:
test:
name: example CI (${{ matrix.project.name }})
runs-on: ubuntu-latest
strategy:
matrix:
project:
- name: add
dir: ./examples/components/add
- name: string-reverse
dir: ./examples/components/string-reverse
- name: string-reverse-upper
dir: ./examples/components/string-reverse-upper
is-composed: true
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
with:
sparse-checkout: |
examples
- name: install (${{ matrix.project.name }})
working-directory: ${{ matrix.project.dir }}
run: |
pnpm install
- name: build (${{ matrix.project.name }})
working-directory: ${{ matrix.project.dir }}
run: |
pnpm build
- name: transpile (${{ matrix.project.name }})
working-directory: ${{ matrix.project.dir }}
run: |
pnpm transpile
- name: compose (${{ matrix.project.name }})
if: ${{ matrix.project.is-composed }}
working-directory: ${{ matrix.project.dir }}
run: |
pnpm compose
- name: run transpiled js (${{ matrix.project.name }})
if: ${{ matrix.project.composed }}
working-directory: ${{ matrix.project.dir }}
run: |
pnpm transpiled-js