Skip to content

fix(deps): update dependency @adobe/spacecat-shared-rum-api-client to… #20

fix(deps): update dependency @adobe/spacecat-shared-rum-api-client to…

fix(deps): update dependency @adobe/spacecat-shared-rum-api-client to… #20

Workflow file for this run

name: CI
permissions:
id-token: write
contents: write
issues: read
on: [push]
env:
CI_BUILD_NUM: ${{ github.run_id }}
CI_BRANCH: ${{ github.ref_name }}
HLX_AWS_REGION: ${{ secrets.AWS_REGION }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22.12
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Getting Code Coverage
run: npm run test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Semantic Release (Dry Run)
if: github.ref != 'refs/heads/main'
run: npm run semantic-release-dry
env:
GITHUB_TOKEN: ${{ secrets.ADOBE_BOT_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
semantic-release:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22.12
- name: Install dependencies
run: npm ci
- name: Revert changes to package-lock.json
run: git checkout -- package-lock.json
- name: Configure Environment
run: echo -e "LOG_LEVEL=info\n" > .env
- name: Configure AWS Credentials
id: creds
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::282898975672:role/spacecat-role-github-actions
- name: Fetch AWS Secrets
uses: aws-actions/aws-secretsmanager-get-secrets@v2
with:
parse-json-secrets: true
secret-ids: |
/spacecat/github-action-secrets
- name: Semantic Release
run: npm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.ADOBE_BOT_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
branch-deploy:
runs-on: ubuntu-latest
needs: build
if: github.ref != 'refs/heads/main'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22.12
- name: Install dependencies
run: npm ci
- name: Revert changes to package-lock.json
run: git checkout -- package-lock.json
- name: Configure AWS Credentials
id: creds
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::282898975672:role/spacecat-role-github-actions
- name: Fetch AWS Secrets
uses: aws-actions/aws-secretsmanager-get-secrets@v2
with:
parse-json-secrets: true
secret-ids: |
/spacecat/github-action-secrets
- name: Branch Deployment
run: npm run deploy-ci
env:
AWS_REGION: us-east-1
- name: Post-Deployment Integration Test
run: npm run test-postdeploy
- name: Upload post-deployment coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}