Use GitHub container for publishing (#200) #13
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| ci: | |
| runs-on: blacksmith-4vcpu-ubuntu-2404 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: lint | |
| command: yarn lint | |
| - name: validate-schema | |
| command: yarn validate:schema | |
| - name: test | |
| command: yarn test | |
| - name: format-check | |
| command: yarn format:check | |
| - name: validate-examples | |
| command: yarn validate:examples | |
| - name: build | |
| command: yarn build && yarn check-exports | |
| name: ${{ matrix.name }} | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Use Node.js | |
| uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 | |
| with: | |
| node-version: 24 | |
| cache: 'yarn' | |
| - name: Install dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: ${{ matrix.name }} | |
| run: ${{ matrix.command }} |