Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(workflow) add workflow for checking 3rd party dependencies, test and build npm packages #625

Merged
merged 4 commits into from
Jun 26, 2024
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
38 changes: 38 additions & 0 deletions .github/workflows/ci-npm-packages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Run it locally with act
# 1. Install act:
# `brew install act`
# 2. Create a .secret file with the following content:
# `GITHUB_TOKEN=your_github_token`
# PULL REQUEST
# 1. Create a act_pull_request.json file in case of a pull request with the following content:
# `{"pull_request": {"number": <PR number>, "head": {"ref": "<PR branch name>", "sha": "PR commit sha"}, "base": {"ref": "main"}}, "repository": {"name": "juno", "owner": {"login": "cloudoperators"}}}`
# 2. Run the following command:
# `act pull_request --container-architecture linux/amd64 -P default=catthehacker/ubuntu:act-latest -j run-pipeline -e act_pull_request.json -W .github/workflows/ci-npm-packages.yaml`

name: Detect NPM Package Changes and trigger Pipeline

on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- "apps/**"

jobs:
run-detect-changes:
uses: cloudoperators/juno/.github/workflows/check-changes-npm-package.yaml@main
with:
paths: "apps"
runs-on: "ubuntu-latest"

run-pipeline:
needs: [run-detect-changes]
strategy:
matrix:
change: ${{fromJson(needs.run-detect-changes.outputs.changes)}}
node: [20.x]
fail-fast: false # Allow other jobs to continue if one fails
uses: cloudoperators/juno/.github/workflows/pipeline-npm-package.yaml@main
with:
path: ${{ matrix.change }}
node: "${{ matrix.node }}"
runs-on: "ubuntu-latest"
1 change: 1 addition & 0 deletions apps/dashboard/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Global Dashboard

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
[![Built with Juno](https://cloudoperators.github.io/juno/built-with-juno.svg)](https://github.com/cloudoperators/juno)

This app implements the global landing apge for Converged Cloud (CC). It offers a region and domain selection so that the user can navigate directly to the CC Dashboard in the desired region.
2 changes: 1 addition & 1 deletion apps/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
],
"repository": "https://github.com/sapcc/juno/tree/main/apps/dashboard",
"license": "Apache-2.0",
"private": true,
"private": false,
"source": "src/index.js",
"module": "build/index.js",
"devDependencies": {
Expand Down
Loading