forked from WoWAnalyzer/WoWAnalyzer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
local-pipeline.sh
executable file
·69 lines (58 loc) · 1.16 KB
/
local-pipeline.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/env sh
## Script that will run some of the same checks that the Github Actions will do.
# This can be useful for local development and getting PRs merged faster
# since checks can be done locally instead of waiting.
# Set envvars
export CI=true
export GITHUB_BASE_REF=dragonflight
# Check for changelog
if ! node scripts/require-changelog-entry.js;
then
echo "New changelog entry has not been added."
exit 1
fi
# Run Typecheck
if ! pnpm run typecheck;
then
echo "Typecheck failed."
exit 1
fi
# ESLint
if ! pnpm run lint --max-warnings=0;
then
echo "ESLint failed."
exit 1
fi
# Interface tests
if ! pnpm run test:interface --runInBand;
then
echo "Interface tests failed."
exit 1
fi
# Parser tests
if ! pnpm run test:parser --runInBand;
then
echo "Parser tests failed."
exit 1
fi
# Integration tests
if ! pnpm run test:integration --runInBand;
then
echo "Interface tests failed."
exit 1
fi
# Verify i18n
if ! pnpm run extract && pnpm exec lingui compile;
then
echo "i18n verification failed."
exit 1
fi
# Build
if [ "$1" = "build" ]; then
if ! pnpm run build;
then
echo "Build failed."
exit 1
fi
fi
echo "All steps completed."