Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

Commit 4686d49

Browse files
galoybotsandipndev
andauthored
ci(shared): bump vendored ci files (#180)
* ci(shared): bump vendored ci files * fix: audit and check code * chore: don't have spelling --------- Co-authored-by: Sandipan Dey <hey@sandipan.dev>
1 parent 12e2b73 commit 4686d49

22 files changed

+1014
-49
lines changed

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#! Auto synced from Shared CI Resources repository
2+
#! Don't change this file, instead change it in github.com/GaloyMoney/concourse-shared
3+
4+
# To get started with Dependabot version updates, you'll need to specify which
5+
# package ecosystems to update and where the package manifests are located.
6+
# Please see the documentation for all configuration options:
7+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
8+
9+
version: 2
10+
updates:
11+
- package-ecosystem: "npm" # See documentation for possible values
12+
directory: "/" # Location of package manifests
13+
schedule:
14+
interval: "daily"

.github/workflows/audit.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#! Auto synced from Shared CI Resources repository
2+
#! Don't change this file, instead change it in github.com/GaloyMoney/concourse-shared
3+
4+
name: Audit
5+
6+
on:
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
audit:
12+
name: Audit
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: 18
19+
cache: "yarn"
20+
- run: yarn install --frozen-lockfile
21+
- name: Run audit
22+
run: make audit

.github/workflows/check-code.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#! Auto synced from Shared CI Resources repository
2+
#! Don't change this file, instead change it in github.com/GaloyMoney/concourse-shared
3+
4+
name: Check Code
5+
6+
on:
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
check-code:
12+
name: Check Code
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: 18
19+
cache: "yarn"
20+
- run: yarn install --frozen-lockfile
21+
- name: Run check code
22+
run: make check-code
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#! Auto synced from Shared CI Resources repository
2+
#! Don't change this file, instead change it in github.com/GaloyMoney/concourse-shared
3+
4+
name: Audit
5+
6+
on:
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
audit:
12+
name: Audit
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: 18
19+
cache: "yarn"
20+
- run: yarn install --frozen-lockfile
21+
- name: Run audit
22+
run: make audit
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#! Auto synced from Shared CI Resources repository
2+
#! Don't change this file, instead change it in github.com/GaloyMoney/concourse-shared
3+
4+
name: Check Code
5+
6+
on:
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
check-code:
12+
name: Check Code
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: 18
19+
cache: "yarn"
20+
- run: yarn install --frozen-lockfile
21+
- name: Run check code
22+
run: make check-code

.github/workflows/vendor/spelling.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#! Auto synced from Shared CI Resources repository
2+
#! Don't change this file, instead change it in github.com/GaloyMoney/concourse-shared
3+
4+
name: Spelling
5+
6+
on:
7+
pull_request:
8+
branches: [ main ]
9+
10+
jobs:
11+
spelling:
12+
name: Spell Check with Typos
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Actions Repository
16+
uses: actions/checkout@v3
17+
- name: Spell Check Repo
18+
uses: crate-ci/typos@master
19+
with:
20+
config: typos.toml

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# 16 is exit code for critical https://classic.yarnpkg.com/lang/en/docs/cli/audit
2+
audit:
3+
bash -c 'yarn audit --level critical; [[ $$? -ge 16 ]] && exit 1 || exit 0'
4+
5+
check-code:
6+
. ./.envrc && yarn code:check

ci/vendir.lock.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ apiVersion: vendir.k14s.io/v1alpha1
22
directories:
33
- contents:
44
- git:
5-
commitTitle: 'fix: git cliff config should be pulled from pipeline-tasks (#4)'
6-
sha: fc36c9834e4da8374728298ffd362b7bc1280bc5
5+
commitTitle: 'chore: unpack_deps function for rust'
6+
sha: f866f388e2bc4508e518d442b4782a2c8f25d2f8
77
path: .
8-
path: tasks/vendor
8+
path: ../.github/workflows/vendor
99
- contents:
1010
- git:
11-
commitTitle: 'fix: git cliff config should be pulled from pipeline-tasks (#4)'
12-
sha: fc36c9834e4da8374728298ffd362b7bc1280bc5
11+
commitTitle: 'chore: unpack_deps function for rust'
12+
sha: f866f388e2bc4508e518d442b4782a2c8f25d2f8
1313
path: .
14-
path: config/vendor
14+
path: ./vendor
1515
kind: LockConfig

ci/vendir.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
apiVersion: vendir.k14s.io/v1alpha1
22
kind: Config
33

4+
# Relative to ci/
45
directories:
5-
- path: tasks/vendor
6+
- path: ../.github/workflows/vendor
67
contents:
7-
- path: .
8+
- path: . # Copy this folder out to ..
89
git:
910
url: https://github.com/GaloyMoney/concourse-shared.git
10-
ref: fc36c9834e4da8374728298ffd362b7bc1280bc5
11+
ref: f866f388e2bc4508e518d442b4782a2c8f25d2f8
1112
includePaths:
12-
- tasks/**/*
13-
newRootPath: tasks
13+
- shared/actions/*
14+
excludePaths:
15+
- shared/actions/rust-*
16+
newRootPath: shared/actions
1417

15-
- path: config/vendor
18+
- path: ./vendor
1619
contents:
1720
- path: .
1821
git:
1922
url: https://github.com/GaloyMoney/concourse-shared.git
20-
ref: fc36c9834e4da8374728298ffd362b7bc1280bc5
23+
ref: f866f388e2bc4508e518d442b4782a2c8f25d2f8
2124
includePaths:
22-
- config/**/*
23-
newRootPath: config
25+
- shared/ci/**/*
26+
excludePaths:
27+
- shared/ci/**/rust-*
28+
newRootPath: shared/ci

ci/vendor/config/git-cliff.toml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#! Auto synced from Shared CI Resources repository
2+
#! Don't change this file, instead change it in github.com/GaloyMoney/concourse-shared
3+
4+
# configuration file for git-cliff (0.1.0)
5+
6+
[changelog]
7+
# changelog header
8+
header = """"""
9+
10+
# template for the changelog body
11+
# https://tera.netlify.app/docs/#introduction
12+
body = """
13+
{% if version %}\
14+
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
15+
{% endif %}\
16+
{% for group, commits in commits | group_by(attribute="group") %}
17+
### {{ group | upper_first }}
18+
{% for commit in commits %}
19+
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\
20+
{% endfor %}
21+
{% endfor %}\n
22+
"""
23+
# remove the leading and trailing whitespaces from the template
24+
trim = true
25+
# changelog footer
26+
footer = """"""
27+
28+
[git]
29+
# parse the commits based on https://www.conventionalcommits.org
30+
conventional_commits = true
31+
# filter out the commits that are not conventional
32+
filter_unconventional = true
33+
# regex for parsing and grouping commits
34+
commit_parsers = [
35+
{ message = "^feat", group = "Features"},
36+
{ message = "^fix", group = "Bug Fixes"},
37+
{ message = "^doc", group = "Documentation"},
38+
{ message = "^perf", group = "Performance"},
39+
{ message = "^refactor", group = "Refactor"},
40+
{ message = "^style", group = "Styling"},
41+
{ message = "^test", group = "Testing"},
42+
{ message = "^chore\\(release\\): prepare for", skip = true},
43+
{ message = "^chore", group = "Miscellaneous Tasks"},
44+
{ body = ".*security", group = "Security"},
45+
]
46+
# filter out the commits that are not matched by commit parsers
47+
filter_commits = true
48+
# glob pattern for matching git tags
49+
tag_pattern = "v[0-9]*"
50+
# regex for skipping tags
51+
skip_tags = "v0.1.0-beta.1"
52+
# regex for ignoring tags
53+
ignore_tags = ""
54+
# sort the tags topologically
55+
topo_order = false
56+
# sort the commits inside sections by oldest/newest order
57+
sort_commits = "newest"

0 commit comments

Comments
 (0)