Skip to content

Convert E2Es to examples #18

Convert E2Es to examples

Convert E2Es to examples #18

Workflow file for this run

name: Examples
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
convert:
strategy:
matrix:
e2e:
- extra-fields
name: Convert ${{matrix.e2e}}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up env
uses: the-guild-org/shared-config/setup@v1
- name: Convert
run: yarn workspace @internal/examples run start ${{matrix.e2e}}
- name: Upload
uses: actions/upload-artifact@v4
with:
name: examples
# > If multiple paths are provided as input, the least common ancestor of all the search paths will be used as the root directory of the artifact.
# https://github.com/actions/upload-artifact#upload-using-multiple-paths-and-exclusions
#
# Because of this, we include the root README.md to maintain the paths during artifact downloads
path: |
README.md
examples/${{matrix.e2e}}
commit:
needs: [convert]
name: Commit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up env
uses: the-guild-org/shared-config/setup@v1
- name: Download
uses: actions/download-artifact@v4
with:
name: examples
- name: Format
run: yarn format
# - name: Commit
# uses: stefanzweifel/git-auto-commit-action@v5
# with:
# file_pattern: examples/*
# commit_message: 'docs(examples): converted from e2es'