-
Notifications
You must be signed in to change notification settings - Fork 19
59 lines (49 loc) · 1.45 KB
/
ci.yaml
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
name: CI
on:
push:
branches:
- main
workflow_dispatch:
pull_request:
jobs:
pack:
name: CI
runs-on: ubuntu-latest
steps:
- uses: honeycombio/gha-buildevents@v2
with:
apikey: ${{ secrets.BUILDEVENTS_APIKEY }}
dataset: gha-buildevents_integration
status: ${{ job.status }}
- uses: actions/checkout@v4
- run: |
STEP_ID="install dependencies"
echo "STEP_ID=${STEP_ID}" >> $GITHUB_ENV
echo "STEP_START=$(date +%s)" >> $GITHUB_ENV
- run: npm ci
- run: |
STEP_ID=lint
echo "STEP_ID=${STEP_ID}" >> $GITHUB_ENV
echo "STEP_START=$(date +%s)" >> $GITHUB_ENV
- run: npm run lint
- run: |
STEP_ID=format-check
echo "STEP_ID=${STEP_ID}" >> $GITHUB_ENV
echo "STEP_START=$(date +%s)" >> $GITHUB_ENV
- run: npm run format-check
- run: |
STEP_ID=build
echo "STEP_ID=${STEP_ID}" >> $GITHUB_ENV
echo "STEP_START=$(date +%s)" >> $GITHUB_ENV
- run: npm run build
- run: |
STEP_ID=pack
echo "STEP_ID=${STEP_ID}" >> $GITHUB_ENV
echo "STEP_START=$(date +%s)" >> $GITHUB_ENV
- run: npm run pack
- name: Verify no changes were made
run: |
if ! git diff --quiet; then
echo "Changes detected! Please run 'npm run all' before committing code changes."
exit 1
fi