Update repository link and OAS version support #310
Workflow file for this run
This file contains hidden or 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: Astro CI | |
| # This workflow is triggered on pushes to the repository. | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| # Setup Node.js environment | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '24' # LTS version | |
| # Install pnpm (version from package.json packageManager field) | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v6 | |
| # Cache pnpm modules | |
| - name: Cache pnpm modules | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.pnpm-store | |
| key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pnpm- | |
| # Install dependencies using pnpm | |
| - name: Install dependencies | |
| run: pnpm install | |
| # Run tests | |
| - name: Test | |
| run: pnpm test | |
| # Check for unused dependencies and exports | |
| - name: Dependency check | |
| run: pnpm depcheck | |
| # Run linting | |
| - name: Lint | |
| run: pnpm lint | |
| # Check formatting with Oxfmt | |
| - name: Check formatting | |
| run: pnpm fmt:check | |
| # Check for type and other errors | |
| - name: Type and error check | |
| run: pnpm check | |
| # Build the project | |
| - name: Build | |
| run: pnpm build |