β chore: bump actions/setup-node from 4 to 6 #97
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: Build | |
| on: | |
| pull_request: | |
| branches: [dev, main] | |
| push: | |
| branches: [dev] | |
| jobs: | |
| test: | |
| name: Run Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9.15.4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '22' | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Type checking | |
| run: pnpm type-check | |
| - name: Run tests | |
| run: pnpm test | |
| - name: Generate coverage | |
| run: pnpm test:coverage | |
| continue-on-error: true | |
| build: | |
| name: Build Container Images | |
| runs-on: ubuntu-latest | |
| needs: test | |
| permissions: | |
| contents: read | |
| packages: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Build and Push Container | |
| uses: wgtechlabs/container-build-flow-action@v1.3.1 | |
| with: | |
| # Registry Configuration | |
| registry: both | |
| dockerhub-username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
| dockerhub-token: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
| # Branch Configuration | |
| main-branch: main | |
| dev-branch: dev | |
| # Image Configuration | |
| image-name: unthread-webhook-server | |
| dockerfile: ./Dockerfile | |
| context: . | |
| platforms: linux/amd64 | |
| # Build Arguments | |
| build-args: | | |
| NODE_VERSION=22.21-alpine3.23 | |
| RAILWAY_SERVICE_ID=${{ secrets.RAILWAY_SERVICE_ID }} | |
| # Labels | |
| labels: | | |
| org.opencontainers.image.title=Unthread Webhook Server | |
| org.opencontainers.image.description=A reliable, production-ready Node.js server for processing Unthread.io webhooks with signature verification and smart platform handling. | |
| org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }} | |
| org.opencontainers.image.url=${{ github.server_url }}/${{ github.repository }} | |
| org.opencontainers.image.licenses=GPL-3.0 | |
| # Features | |
| pr-comment-enabled: true | |
| cache-enabled: true | |
| provenance: true | |
| sbom: true |