File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : PR Checker
2
+ on :
3
+ pull_request :
4
+ types : [opened, synchronize, reopened]
5
+ workflow_dispatch :
6
+
7
+ # cancel a previous check if running
8
+ # this avoids concurrent checks when multiple commits
9
+ # are pushed to a PR branch in a short time frame
10
+ # head_ref || ref_name ensures a value exists.
11
+ concurrency :
12
+ group : cb-${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
13
+ cancel-in-progress : true
14
+
15
+ jobs :
16
+ run-tests :
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - uses : actions/checkout@v4
20
+ - uses : actions/setup-node@v4
21
+ with :
22
+ node-version : " 20"
23
+ - uses : stepzen-dev/stepzen-install@v1
24
+ - name : start service
25
+ run : |
26
+ stepzen service start
27
+ - name : login into local service
28
+ run : |
29
+ stepzen login --config ~/.stepzen/stepzen-config.local.yaml
30
+ - name : tests
31
+ run : |
32
+ cd tests
33
+ npm ci
34
+ npm test
35
+ env :
36
+ STEPZEN_ENDPOINT : " http://127.0.0.1:9000/test/snippets/__graphql"
37
+ - name : stop service
38
+ if : ${{ !cancelled() }}
39
+ run : |
40
+ stepzen service stop
You can’t perform that action at this time.
0 commit comments