Skip to content

Add indent prop to source file component, properly indent C#. (#38) #163

Add indent prop to source file component, properly indent C#. (#38)

Add indent prop to source file component, properly indent C#. (#38) #163

Workflow file for this run

name: CI
on: [push, pull_request]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Test
run: pnpm test
- run: pnpx pkg-pr-new publish './packages/*' --pnpm
- name: Generate docs
working-directory: ./packages/docs
run: pnpm run generate-docs
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build with Astro
run: |
pnpx astro build \
--site "${{ steps.pages.outputs.origin }}" \
--base "${{ steps.pages.outputs.base_path }}"
working-directory: ./packages/docs
- name: Upload artifact
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v3
with:
path: ./packages/docs/dist
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: pnpm install
name: Install dependencies
- run: pnpm --filter="@alloy-js/prettier-plugin-alloy..." run build
name: Build
- run: pnpm run format:check
name: Check formatting
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: pnpm install
name: Install dependencies
- run: pnpm run lint
name: Lint
deploy-docs:
if: github.event_name != 'pull_request'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4