diff --git a/.github/workflows/pr_affected_code.yml b/.github/workflows/pr_all_affected_test.yml similarity index 96% rename from .github/workflows/pr_affected_code.yml rename to .github/workflows/pr_all_affected_test.yml index 82e8ff4..aac6add 100644 --- a/.github/workflows/pr_affected_code.yml +++ b/.github/workflows/pr_all_affected_test.yml @@ -1,4 +1,4 @@ -name: Nx Affected CI +name: PR ALL Affected Test on: pull_request: branches: [main] diff --git a/.github/workflows/pr_push_api_build.yml b/.github/workflows/pr_push_api_build.yml new file mode 100644 index 0000000..3630b62 --- /dev/null +++ b/.github/workflows/pr_push_api_build.yml @@ -0,0 +1,36 @@ +name: 'PR & Push API Build' +on: + pull_request: + branches: + - '*' + paths: + - 'libs/**' + - 'apps/api/**' + push: + branches: + - '*' + paths: + - 'libs/**' + - 'apps/api/**' + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.x] + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + - name: 'Install dependencies' + run: yarn install + + - name: 'Build Api' + run: npx nx run api:build diff --git a/.github/workflows/pr_push_platform_build.yml b/.github/workflows/pr_push_platform_build.yml new file mode 100644 index 0000000..8f6b621 --- /dev/null +++ b/.github/workflows/pr_push_platform_build.yml @@ -0,0 +1,36 @@ +name: 'PR & Push Platform Build' +on: + pull_request: + branches: + - '*' + paths: + - 'libs/**' + - 'apps/platform/**' + push: + branches: + - '*' + paths: + - 'libs/**' + - 'apps/platform/**' + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.x] + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + - name: 'Install dependencies' + run: yarn install + + - name: 'Build Platform' + run: npx nx run platform:build