Skip to content

Commit 7328314

Browse files
authored
chore(web3): use github actions (#19816)
* chore: use github actions * chore: npm audit * chore: fix prettier warn * chore: fix doc errors * chore: add puppeteer
1 parent f94b4f2 commit 7328314

7 files changed

+524
-476
lines changed

.prettierrc.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
arrowParens: "avoid"
22
bracketSpacing: false
3-
jsxBracketSameLine: false
43
semi: true
54
singleQuote: true
65
tabWidth: 2

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,15 @@ deploy:
3838
on:
3939
branch: master
4040
node_js: "lts/*"
41+
4142
- provider: script
4243
skip_cleanup: true
4344
script:
4445
- npx semantic-release
4546
on:
4647
branch: master
4748
node_js: "lts/*"
49+
4850
- provider: releases
4951
skip-cleanup: true
5052
file:

commitlint.sh

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Runs commitlint in the provided subdirectory
4+
#
5+
6+
set -e
7+
8+
basedir=$1
9+
if [[ -z "$basedir" ]]; then
10+
basedir=.
11+
fi
12+
13+
if [[ ! -d "$basedir" ]]; then
14+
echo "Error: not a directory: $basedir"
15+
exit 1
16+
fi
17+
18+
if [[ ! -f "$basedir"/commitlint.config.js ]]; then
19+
echo "Error: No commitlint configuration found"
20+
exit 1
21+
fi
22+
23+
if [[ -z $COMMIT_RANGE ]]; then
24+
echo "Error: COMMIT_RANGE not defined"
25+
exit 1
26+
fi
27+
28+
cd "$basedir"
29+
echo "Checking commits in COMMIT_RANGE: $COMMIT_RANGE"
30+
while IFS= read -r line; do
31+
echo "$line" | npx commitlint
32+
done < <(git log "$COMMIT_RANGE" --format=%s -- .)

0 commit comments

Comments
 (0)