From dbc8209559dd182c308acb42798e10afa39cabba Mon Sep 17 00:00:00 2001 From: mayconrfreitas Date: Mon, 29 Sep 2025 16:57:51 -0300 Subject: [PATCH] add CI workflows for dev and main branches; update README badges --- .github/workflows/ci-dev.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/ci-main.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 33 --------------------------------- README.md | 5 ++--- 4 files changed, 62 insertions(+), 36 deletions(-) create mode 100644 .github/workflows/ci-dev.yml create mode 100644 .github/workflows/ci-main.yml delete mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci-dev.yml b/.github/workflows/ci-dev.yml new file mode 100644 index 0000000..f5d3d86 --- /dev/null +++ b/.github/workflows/ci-dev.yml @@ -0,0 +1,30 @@ +name: Build dev + +on: + push: + branches: [ dev ] + pull_request: + branches: [ dev ] + +concurrency: + group: ci-dev-${{ github.ref }} + cancel-in-progress: true + +jobs: + build-and-test: + name: build-and-test (dev) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + + - uses: pnpm/action-setup@v4 + with: + run_install: false + + - run: pnpm i + - run: pnpm build + - run: pnpm test diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml new file mode 100644 index 0000000..8a2c9be --- /dev/null +++ b/.github/workflows/ci-main.yml @@ -0,0 +1,30 @@ +name: Build main + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +concurrency: + group: ci-main-${{ github.ref }} + cancel-in-progress: true + +jobs: + build-and-test: + name: build-and-test (main) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + + - uses: pnpm/action-setup@v4 + with: + run_install: false + + - run: pnpm i + - run: pnpm build + - run: pnpm test diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index eac70b2..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: CI - -on: - push: - branches: [ dev, main ] - pull_request: - branches: [ dev, main ] - -jobs: - build-and-test: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Use Node.js 20 - uses: actions/setup-node@v4 - with: - node-version: 20 - - - name: Setup pnpm - uses: pnpm/action-setup@v4 - with: - run_install: false - - - name: Install - run: pnpm i - - - name: Build - run: pnpm build - - - name: Test - run: pnpm test diff --git a/README.md b/README.md index 8c9b1de..f1a8489 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # Struct Forge - -[![Build dev](https://github.com/aecoder-br/structforge/actions/workflows/ci.yml/badge.svg?branch=dev)](https://github.com/aecoder-br/structforge/actions/workflows/ci.yml) -[![Build main](https://github.com/aecoder-br/structforge/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/aecoder-br/structforge/actions/workflows/ci.yml) +[![Build dev](https://github.com/aecoder-br/structforge/actions/workflows/ci-dev.yml/badge.svg?branch=dev)](https://github.com/aecoder-br/structforge/actions/workflows/ci-dev.yml) +[![Build main](https://github.com/aecoder-br/structforge/actions/workflows/ci-main.yml/badge.svg?branch=main)](https://github.com/aecoder-br/structforge/actions/workflows/ci-main.yml) [![License](https://img.shields.io/github/license/aecoder-br/structforge.svg)](LICENSE) [![Stars](https://img.shields.io/github/stars/aecoder-br/structforge.svg?style=social)](https://github.com/aecoder-br/structforge) [![Node >=18](https://img.shields.io/badge/node-%3E%3D18-339933.svg)](https://nodejs.org/)