File tree Expand file tree Collapse file tree 2 files changed +27
-22
lines changed
Expand file tree Collapse file tree 2 files changed +27
-22
lines changed Original file line number Diff line number Diff line change 2626 timeout-minutes : 45
2727
2828 steps :
29+ - name : Prepare git
30+ if : runner.os == 'Windows'
31+ run : git config --global core.autocrlf false
32+
2933 - uses : actions/checkout@v5
3034
3135 - name : Set up Node.js
Original file line number Diff line number Diff line change 1- #! /bin/bash
2- set -eu
3-
4- # Sanity check that repo is clean to start with
5- if [ ! -z " $( git status --porcelain) " ]; then
6- # If we get a fail here then this workflow needs attention...
7- >&2 echo " Failed: Repo should be clean before testing!"
8- exit 1
9- fi
10- # Wipe the lib directory in case there are extra unnecessary files in there
11- rm -rf lib
12- # Generate the JavaScript files
13- npm run-script build
14- # Check that repo is still clean
15- git add -N .
16- if ! git diff --exit-code; then
17- # If we get a fail here then the PR needs attention
18- >&2 echo " Failed: JavaScript files are not up to date. Run 'rm -rf lib && npm run-script build' to update"
19- git status
20- exit 1
21- fi
22- echo " Success: JavaScript files are up to date"
1+ #! /bin/bash
2+ set -eu
3+
4+ # Sanity check that repo is clean to start with
5+ if [ ! -z " $( git status --porcelain) " ]; then
6+ # If we get a fail here then this workflow needs attention...
7+ >&2 echo " Failed: Repo should be clean before testing!"
8+ exit 1
9+ fi
10+
11+ # Wipe the lib directory in case there are extra unnecessary files in there
12+ rm -rf lib
13+ # Generate the JavaScript files
14+ npm run-script build
15+ # Check that repo is still clean
16+ git add -N .
17+ if ! git diff --exit-code; then
18+ # If we get a fail here then the PR needs attention
19+ >&2 echo " Failed: JavaScript files are not up to date. Run 'rm -rf lib && npm run-script build' to update"
20+ git status
21+ exit 1
22+ fi
23+ echo " Success: JavaScript files are up to date"
You can’t perform that action at this time.
0 commit comments