Skip to content
This repository has been archived by the owner on Jan 11, 2022. It is now read-only.

Commit

Permalink
chore(init): created repository from template
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff committed Apr 9, 2021
0 parents commit 05c34ba
Show file tree
Hide file tree
Showing 23 changed files with 18,173 additions and 0 deletions.
118 changes: 118 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
version: 2.1
executors:
node12:
docker:
- image: circleci/node:12
environment:
NPM_CONFIG_PREFIX: "~/.npm-global"
working_directory: ~/repo

orbs:
helix-post-deploy: adobe/helix-post-deploy@1.10.0
helix-gcloud-setup: adobe/helix-gcloud-setup@1.0.0

commands:
setup:
steps:
- checkout
- restore_cache:
keys:
- v3-dependencies-{{ arch }}-{{ checksum "package-lock.json" }}
- run:
name: install latest npm
command: sudo npm -g install npm
- run:
name: Installing Dependencies
command: npm ci
- save_cache:
paths:
- node_modules
key: v3-dependencies-{{ arch }}-{{ checksum "package-lock.json" }}
- run:
name: prepare test git user
command: git config --global user.email "circleci@example.com" && git config
--global user.name "CircleCi Build"

jobs:
build:
executor: node12
steps:
- setup
- run: mkdir junit
- run:
name: Lint
command: npm run lint
- run:
name: Getting Code Coverage
command: npm run test-ci
- store_test_results:
path: junit
- store_artifacts:
path: junit

semantic-release:
executor: node12
steps:
- setup
- run:
name: revert changes to package-lock.json
command: git checkout -- package-lock.json
- helix-post-deploy/config-wsk
- helix-post-deploy/config-env
- helix-gcloud-setup/load-config
- run:
name: Semantic Release
command: npm run semantic-release
- run:
name: Post-Deployment Integration Test
command: npm run test-postdeploy
- store_test_results:
path: junit
- run:
name: Link Sequences
command: npm run deploy-sequences
# see https://circleci.com/orbs/registry/orb/adobe/helix-post-deploy
# for more available parameters
- helix-post-deploy/monitoring:
statuspage_name: Helix Redirect Accelerator
statuspage_group: Publishing
newrelic_group_policy: Publishing Repeated Failure
incubator: true # remove only when promoting service to production

branch-deploy:
executor: node12
steps:
- setup
- run:
name: revert changes to package-lock.json
command: git checkout -- package-lock.json
- helix-post-deploy/config-wsk
- helix-gcloud-setup/load-config
- run:
name: Branch Deployment
command: npm run deploy-ci
- run:
name: Post-Deployment Integration Test
command: npm run test-postdeploy
- store_test_results:
path: junit

workflows:
version: 2
build:
jobs:
- build
- branch-deploy:
context: Project Helix
requires:
- build
filters:
branches:
ignore: main
- semantic-release:
context: Project Helix
requires:
- build
filters:
branches:
only: main
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.vscode/*
coverage/*
dist/*
16 changes: 16 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright 2019 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/

module.exports = {
root: true,
extends: '@adobe/helix',
};
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Bug report
about: Create a report to help us improve
labels: bug

---

**Description**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Version:**
run: `$ hlx --version`

**Additional context**
Add any other context about the problem here.
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/discussion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: Discussion
about: Start a new discussion
labels: question

---

## Overview
whats' this discussion about?

## Details
more details

## Proposed Actions
and now?
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Feature request
about: Suggest an idea for this project
labels: enhancement

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
16 changes: 16 additions & 0 deletions .github/move.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Configuration for move-issues - https://github.com/dessant/move-issues

# Delete the command comment when it contains no other content
deleteCommand: true

# Close the source issue after moving
closeSourceIssue: true

# Lock the source issue after moving
lockSourceIssue: true

# Mention issue and comment authors
mentionAuthors: true

# Preserve mentions in the issue content
keepContentMentions: true
8 changes: 8 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Please ensure your pull request adheres to the following guidelines:
- [ ] make sure to link the related issues in this description
- [ ] when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes

## Related Issues


Thanks for contributing!
16 changes: 16 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
push:
branches-ignore:
- 'main'

jobs:
ci_trigger:
runs-on: ubuntu-latest
name: Impersonated CI Trigger
steps:
- name: Trigger
id: trigger
uses: adobe-rnd/github-touch-action@master
with:
repo-token: ${{ secrets.MY_GITHUB_TOKEN }}
user: renovate-bot
15 changes: 15 additions & 0 deletions .github/workflows/semver-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
on:
push:
branches-ignore:
- 'main'

jobs:
ci_trigger:
runs-on: ubuntu-latest
name: Comment Semantic Release Status
steps:
- name: Comment
id: comment
uses: adobe-rnd/github-semantic-release-comment-action@master
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
coverage
.nyc_output/
node_modules/
junit
dist
tmp
logs
.DS_Store
test-results.xml
7 changes: 7 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
coverage
node_modules/
junit
build
logs
test-results.xml
.*
22 changes: 22 additions & 0 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module.exports = {
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
['@semantic-release/changelog', {
changelogFile: 'CHANGELOG.md',
}],
["@semantic-release/npm", {
npmPublish: false,
}],
['@semantic-release/git', {
assets: ['package.json', 'package-lock.json', 'CHANGELOG.md'],
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
}],
['@semantic-release/exec', {
publishCmd: 'npm run deploy'
}],
'@semantic-release/github',
],
branch: 'main',
branches: ['main'],
};
Loading

0 comments on commit 05c34ba

Please sign in to comment.