Do not used hardcoded pnpm version #28
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: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - "v*" | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Run golangci-lint | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: v2.11.4 | |
| test-build: | |
| runs-on: ubuntu-latest | |
| needs: lint | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Set up Buf | |
| uses: bufbuild/buf-setup-action@v1 | |
| - name: Generate protobuf | |
| run: make proto | |
| - name: Verify protobuf is up to date | |
| run: git diff --exit-code | |
| - name: Run tests | |
| run: make test | |
| - name: Build | |
| run: make build | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: fluxmq-linux-amd64 | |
| path: build/fluxmq | |
| ui: | |
| runs-on: ubuntu-latest | |
| needs: test-build | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v6 | |
| with: | |
| version: 10.12.1 | |
| run_install: false | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| cache-dependency-path: ui/pnpm-lock.yaml | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile --prefer-offline | |
| working-directory: ./ui | |
| - name: Lint | |
| run: pnpm run lint | |
| working-directory: ./ui | |
| - name: Build | |
| run: pnpm run build | |
| working-directory: ./ui |