Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions .circleci/config.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
- [ ] I have updated the documentation accordingly.
- [ ] I have read the **CONTRIBUTING** document.
- [ ] I have added tests to cover my changes and the overall coverage did not decrease.
- [ ] All unit tests pass on CircleCi.
- [ ] All unit tests pass in GitHub Actions.
- [ ] I ran all tests locally and they pass.
2 changes: 1 addition & 1 deletion .circleci/codecov.yml → .github/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ coverage:
enabled: true
target: 80%
threshold: null
base: auto
base: auto
6 changes: 3 additions & 3 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
- name: npm install
run: npm i
- name: Setup CLI
uses: adobe/aio-cli-setup-action@1.1.0
uses: adobe/aio-cli-setup-action@1.3.0
with:
os: ${{ matrix.os }}
version: 8.x.x
- name: Build
env:
AIO_RUNTIME_NAMESPACE: ${{ secrets.AIO_RUNTIME_NAMESPACE_PROD }}
uses: adobe/aio-apps-action@2.0.1
uses: adobe/aio-apps-action@4.1.0
with:
os: ${{ matrix.os }}
command: build
Expand All @@ -44,7 +44,7 @@ jobs:
AIO_PROJECT_WORKSPACE_ID: ${{ secrets.AIO_PROJECT_WORKSPACE_ID_PROD }}
AIO_PROJECT_WORKSPACE_NAME: ${{ secrets.AIO_PROJECT_WORKSPACE_NAME_PROD }}
AIO_PROJECT_WORKSPACE_DETAILS_SERVICES: ${{ secrets.AIO_PROJECT_WORKSPACE_DETAILS_SERVICES_PROD }}
uses: adobe/aio-apps-action@2.0.1
uses: adobe/aio-apps-action@4.1.0
with:
os: ${{ matrix.os }}
command: deploy
6 changes: 3 additions & 3 deletions .github/workflows/deploy_stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ jobs:
- name: npm install
run: npm i
- name: Setup CLI
uses: adobe/aio-cli-setup-action@1.1.0
uses: adobe/aio-cli-setup-action@1.3.0
with:
os: ${{ matrix.os }}
version: 8.x.x
- name: Build
env:
AIO_RUNTIME_NAMESPACE: ${{ secrets.AIO_RUNTIME_NAMESPACE_STAGE }}
uses: adobe/aio-apps-action@2.0.1
uses: adobe/aio-apps-action@4.1.0
with:
os: ${{ matrix.os }}
command: build
Expand All @@ -45,7 +45,7 @@ jobs:
AIO_PROJECT_WORKSPACE_ID: ${{ secrets.AIO_PROJECT_WORKSPACE_ID_STAGE }}
AIO_PROJECT_WORKSPACE_NAME: ${{ secrets.AIO_PROJECT_WORKSPACE_NAME_STAGE }}
AIO_PROJECT_WORKSPACE_DETAILS_SERVICES: ${{ secrets.AIO_PROJECT_WORKSPACE_DETAILS_SERVICES_STAGE }}
uses: adobe/aio-apps-action@2.0.1
uses: adobe/aio-apps-action@4.1.0
with:
os: ${{ matrix.os }}
command: deploy
35 changes: 30 additions & 5 deletions .github/workflows/pr_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ jobs:
test:
name: Test PR
runs-on: ${{ matrix.os }}
permissions:
contents: read
checks: write
strategy:
matrix:
node-version: ['18']
Expand All @@ -29,19 +32,41 @@ jobs:
- name: npm install
run: npm i
- name: Setup CLI
uses: adobe/aio-cli-setup-action@1.1.0
uses: adobe/aio-cli-setup-action@1.3.0
with:
os: ${{ matrix.os }}
version: 8.x.x
- name: Build
env:
AIO_RUNTIME_NAMESPACE: ${{ secrets.AIO_RUNTIME_NAMESPACE_STAGE }}
uses: adobe/aio-apps-action@2.0.1
uses: adobe/aio-apps-action@4.1.0
with:
os: ${{ matrix.os }}
command: build
# Run the project's own unit suite (lint + mocha + nyc) directly. This is the
# same command CircleCI ran and is what produces the JUnit report
# (test/results/**/*.xml) and the lcov coverage report (coverage/lcov.info) that
# the reporting steps below consume. `aio app test` would not, since no `test`
# hook is defined in app.config.yaml.
- name: Test
uses: adobe/aio-apps-action@2.0.1
run: npm test

# On a test failure only, publish a "Tests" check with the failed tests, their
# error message and stack trace (reads the Mocha JUnit report). Green runs show
# nothing. Gated to ubuntu-latest so the matrix does not publish duplicate checks.
- name: Publish test results
if: failure() && matrix.os == 'ubuntu-latest'
uses: mikepenz/action-junit-report@v5
with:
os: ${{ matrix.os }}
command: test
check_name: Tests
report_paths: 'test/results/**/*.xml'
skip_success_summary: true
fail_on_failure: false

# Upload coverage once (from ubuntu-latest) to avoid triplicate matrix uploads.
- name: Upload coverage to Codecov
if: success() && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v6
with:
files: coverage/lcov.info
fail_ci_if_error: false
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![CircleCI](https://circleci.com/gh/adobe/commerce-cif-graphql-integration-reference.svg?style=svg)](https://circleci.com/gh/adobe/commerce-cif-graphql-integration-reference)
[![AIO App CI](https://github.com/adobe/commerce-cif-graphql-integration-reference/actions/workflows/pr_test.yml/badge.svg)](https://github.com/adobe/commerce-cif-graphql-integration-reference/actions/workflows/pr_test.yml)
[![codecov](https://codecov.io/gh/adobe/commerce-cif-graphql-integration-reference/branch/master/graph/badge.svg)](https://codecov.io/gh/adobe/commerce-cif-graphql-integration-reference)

# 3rd-Party GraphQL integration with AEM Commerce and CIF on Adobe I/O Runtime
Expand Down
Loading