From dbf2d342a7ffb852d13fb57fd141da656a74a382 Mon Sep 17 00:00:00 2001 From: Artur Moreira Date: Mon, 27 Apr 2026 22:45:43 +0000 Subject: [PATCH] feat: add Node.js CI workflow for bridge --- .github/workflows/nodejs-ci.yml | 42 +++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/nodejs-ci.yml diff --git a/.github/workflows/nodejs-ci.yml b/.github/workflows/nodejs-ci.yml new file mode 100644 index 0000000..a5aa156 --- /dev/null +++ b/.github/workflows/nodejs-ci.yml @@ -0,0 +1,42 @@ +# Node.js CI for news-platform bridge +# Runs on: PR and push to main/develop +# Checks: TypeScript build and type checking +name: Node.js CI + +on: + push: + branches: [main, develop] + pull_request: + branches: [main, develop] + +env: + CI: "true" + +jobs: + build-and-test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18, 20] + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: npm + + - name: Install dependencies + run: npm ci + working-directory: bridge + + - name: TypeScript build + run: npm run build + working-directory: bridge + if: always() + + - name: TypeScript type checking + run: npm run typecheck + working-directory: bridge + if: always() \ No newline at end of file