Skip to content

Commit dbba717

Browse files
committed
Merge branch 'main' into dev.v3
* main: (63 commits) build(deps): update snapshot for aws-cdk-lib-2.69.0 build(deps): bump aws-cdk-lib from 2.68.0 to 2.69.0 ci: add bot to update shapshot test in PR (#236) ci: enable CI in 'dev.*' branches (#230) build(deps): bump cdk from 2.68.0 to 2.69.0 build(deps-dev): bump aws-cdk from 2.68.0 to 2.69.0 build(deps): bump constructs from 10.1.277 to 10.1.278 build(deps): bump aws-sdk from 2.1334.0 to 2.1335.0 ci: increase dependabot PR limits (#229) build(deps): bump aws-sdk from 2.1309.0 to 2.1334.0 build(deps-dev): bump @types/node from 18.14.2 to 18.15.3 build(deps-dev): bump @typescript-eslint/parser from 5.54.0 to 5.55.0 build(deps-dev): bump eslint from 8.35.0 to 8.36.0 build(deps): bump constructs from 10.1.268 to 10.1.277 build(deps-dev): bump @typescript-eslint/eslint-plugin build(deps): bump aws-cdk-lib from 2.67.0 to 2.68.0 build(deps-dev): bump lint-staged from 13.1.0 to 13.2.0 build(deps-dev): bump eslint-config-prettier from 8.6.0 to 8.7.0 build(deps): bump cdk from 2.67.0 to 2.68.0 build(deps-dev): bump typescript from 4.9.4 to 4.9.5 ...
2 parents 5cdc72b + 95d4e62 commit dbba717

20 files changed

+1567
-10155
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ version: 2
77
updates:
88
- package-ecosystem: 'npm' # See documentation for possible values
99
directory: '/' # Location of package manifests
10+
open-pull-requests-limit: 30
1011
schedule:
1112
interval: 'weekly'
1213
day: 'monday'
@@ -17,6 +18,7 @@ updates:
1718
versions: '>=28'
1819
- package-ecosystem: 'docker' # See documentation for possible values
1920
directory: '/' # Location of package manifests
21+
open-pull-requests-limit: 30
2022
schedule:
2123
interval: 'weekly'
2224
day: 'monday'

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ name: build
22

33
on:
44
push:
5-
branches: [main]
5+
branches:
6+
- main
7+
- 'dev.*'
68
pull_request:
7-
branches: [main]
9+
branches:
10+
- main
11+
- 'dev.*'
812

913
jobs:
1014
build:
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: PR bot for snapshot updating
2+
3+
on:
4+
issue_comment:
5+
types:
6+
- created
7+
8+
jobs:
9+
build:
10+
if: ${{github.event.issue.pull_request && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') && github.event.comment.body == '/snapshot update'}}
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v3
16+
- name: Checkout pull request branch
17+
run: hub pr checkout ${{ github.event.issue.number }}
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
- name: Respond to comment
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
run: gh pr comment ${{ github.event.issue.pull_request.html_url }} --body "Hi @${{github.event.comment.user.login}}! Starting snapshot update ..."
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v2
26+
with:
27+
node-version: 16
28+
cache: npm
29+
- name: Update npm and check versions
30+
run: |
31+
npm i -g npm
32+
echo "node: $(node --version)"
33+
echo "npm: $(npm --version)"
34+
- name: Install dependencies
35+
run: npm ci
36+
- name: Run automated tests
37+
run: npm run test --workspaces -- -u
38+
- name: Commit and push updates
39+
run: |
40+
echo $(git branch --show-current | rev | cut -d'/' -f1 | rev)
41+
git config user.name "Snapshot bot"
42+
git config user.email "[email protected]"
43+
git status
44+
git add -A
45+
git commit --no-verify -m "build(deps): update snapshot for $(git branch --show-current | rev | cut -d'/' -f1 | rev)"
46+
git push

0 commit comments

Comments
 (0)