Skip to content

Commit ffbd20a

Browse files
committed
Adjust the GitHub workflow to exercise this Action
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent fe9e461 commit ffbd20a

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,28 @@ jobs:
1212
runs-on: windows-latest
1313
steps:
1414
- uses: actions/checkout@v2
15-
- run: |
16-
npm install
17-
- run: |
18-
npm run all
15+
- run: npm ci
16+
- run: npm run build
17+
- run: npm run test
1918
test: # make sure the action works on a clean machine without building
2019
runs-on: windows-latest
2120
steps:
2221
- uses: actions/checkout@v2
23-
- uses: ./
22+
- name: Run this Action in-place
23+
uses: ./
24+
- name: Verify that the Bash of Git for Windows' SDK is used
25+
shell: bash
26+
run: |
27+
set -x
28+
echo "This is the MSYS2 pseudo root: $(cygpath -aw /)"
29+
printf '%s\n' \
30+
"#include <stdio.h>" \
31+
'' \
32+
'int main()' \
33+
'{' \
34+
' printf("Hello, world!\n");' \
35+
' return 0;' \
36+
'}' >hello-world.c
37+
gcc -o hello-world.exe hello-world.c
38+
hello="$(./hello-world.exe)"
39+
test 'Hello, world!' = "$hello"

0 commit comments

Comments
 (0)