Skip to content

Commit 51b8a04

Browse files
committed
basic ci checks
1 parent 68022e3 commit 51b8a04

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/checks.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: checks
2+
3+
# Controls when the action will run.
4+
on:
5+
push:
6+
7+
jobs:
8+
checks:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version-file: '.nvmrc'
15+
cache: 'yarn'
16+
17+
- run: yarn install
18+
19+
- name: yarn deduplicate
20+
run: |
21+
DUPE_LIST=$(yarn run -s yarn-deduplicate --list)
22+
DUPES=$(printf "$DUPE_LIST" | wc -l | tr -d ' ')
23+
if [ "$DUPES" -eq 0 ]; then
24+
echo "no duplicate resolutions to resolve"
25+
exit 0
26+
fi
27+
printf "duplicates found: \n\n%s" "$DUPE_LIST"
28+
exit 1
29+
30+
- name: Check TSC types
31+
run: yarn check-types
32+
33+
- name: ESLint
34+
run: yarn lint

0 commit comments

Comments
 (0)