Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

ci(shared): bump vendored ci files #145

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
15 changes: 15 additions & 0 deletions .github/workflows/nodejs-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Nodejs Audit"

on:
pull_request:
branches: [ main ]

jobs:
integration:
name: Nodejs Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Run ci audit task
run: ./ci/vendor/tasks/nodejs-audit.sh
16 changes: 16 additions & 0 deletions .github/workflows/nodejs-check-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'Nodejs Check Code'

on:
pull_request:
branches: [main]

jobs:
check-code:
name: Nodejs Check Code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: yarn install
- name: Run check code
run: make check-code
16 changes: 16 additions & 0 deletions .github/workflows/spelling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Spelling
on:
pull_request:
branches: [ main ]

jobs:
spelling:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v2
- name: Spell Check Repo
uses: crate-ci/typos@master
with:
config: typos.toml
14 changes: 14 additions & 0 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Integration Tests"

on:
pull_request:
branches: [ main ]

jobs:
integration:
name: Integration Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run integration tests
run: docker compose -f docker-compose.yml run integration-tests
12 changes: 3 additions & 9 deletions ci/vendir.lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@ apiVersion: vendir.k14s.io/v1alpha1
directories:
- contents:
- git:
commitTitle: 'fix: git cliff config should be pulled from pipeline-tasks (#4)'
sha: fc36c9834e4da8374728298ffd362b7bc1280bc5
commitTitle: 'feat: add npm_resource_type'
sha: 38febc2008e907e7888085df52f0a00bb3c8ebb2
path: .
path: tasks/vendor
- contents:
- git:
commitTitle: 'fix: git cliff config should be pulled from pipeline-tasks (#4)'
sha: fc36c9834e4da8374728298ffd362b7bc1280bc5
path: .
path: config/vendor
path: vendor
kind: LockConfig
18 changes: 4 additions & 14 deletions ci/vendir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,12 @@ apiVersion: vendir.k14s.io/v1alpha1
kind: Config

directories:
- path: tasks/vendor
- path: vendor
contents:
- path: .
git:
url: https://github.com/GaloyMoney/concourse-shared.git
ref: fc36c9834e4da8374728298ffd362b7bc1280bc5
ref: 38febc2008e907e7888085df52f0a00bb3c8ebb2
includePaths:
- tasks/**/*
newRootPath: tasks

- path: config/vendor
contents:
- path: .
git:
url: https://github.com/GaloyMoney/concourse-shared.git
ref: fc36c9834e4da8374728298ffd362b7bc1280bc5
includePaths:
- config/**/*
newRootPath: config
- shared/**/*
newRootPath: shared
15 changes: 15 additions & 0 deletions ci/vendor/actions/nodejs-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Nodejs Audit"

on:
pull_request:
branches: [ main ]

jobs:
integration:
name: Nodejs Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Run ci audit task
run: ./ci/vendor/tasks/nodejs-audit.sh
16 changes: 16 additions & 0 deletions ci/vendor/actions/nodejs-check-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'Nodejs Check Code'

on:
pull_request:
branches: [main]

jobs:
check-code:
name: Nodejs Check Code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: yarn install
- name: Run check code
run: make check-code
16 changes: 16 additions & 0 deletions ci/vendor/actions/spelling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Spelling
on:
pull_request:
branches: [ main ]

jobs:
spelling:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v2
- name: Spell Check Repo
uses: crate-ci/typos@master
with:
config: typos.toml
14 changes: 14 additions & 0 deletions ci/vendor/actions/test-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Integration Tests"

on:
pull_request:
branches: [ main ]

jobs:
integration:
name: Integration Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run integration tests
run: docker compose -f docker-compose.yml run integration-tests
54 changes: 54 additions & 0 deletions ci/vendor/config/git-cliff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# configuration file for git-cliff (0.1.0)

[changelog]
# changelog header
header = """"""

# template for the changelog body
# https://tera.netlify.app/docs/#introduction
body = """
{% if version %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits %}
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\
{% endfor %}
{% endfor %}\n
"""
# remove the leading and trailing whitespaces from the template
trim = true
# changelog footer
footer = """"""

[git]
# parse the commits based on https://www.conventionalcommits.org
conventional_commits = true
# filter out the commits that are not conventional
filter_unconventional = true
# regex for parsing and grouping commits
commit_parsers = [
{ message = "^feat", group = "Features"},
{ message = "^fix", group = "Bug Fixes"},
{ message = "^doc", group = "Documentation"},
{ message = "^perf", group = "Performance"},
{ message = "^refactor", group = "Refactor"},
{ message = "^style", group = "Styling"},
{ message = "^test", group = "Testing"},
{ message = "^chore\\(release\\): prepare for", skip = true},
{ message = "^chore", group = "Miscellaneous Tasks"},
{ body = ".*security", group = "Security"},
]
# filter out the commits that are not matched by commit parsers
filter_commits = true
# glob pattern for matching git tags
tag_pattern = "v[0-9]*"
# regex for skipping tags
skip_tags = "v0.1.0-beta.1"
# regex for ignoring tags
ignore_tags = ""
# sort the tags topologically
topo_order = false
# sort the commits inside sections by oldest/newest order
sort_commits = "newest"
11 changes: 11 additions & 0 deletions ci/vendor/nodejs-dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
Loading