@@ -2,31 +2,36 @@ name: Runtime Testing Go Models
22on :
33 push :
44 pull_request :
5- types : [opened, reopened, synchronize, ready_for_review]
6- paths :
7- - ' src/generators/go/**'
8- - ' test/runtime/runtime-go/**'
9- - test/runtime/**go**
5+ types : [opened, reopened, synchronize, ready_for_review]
6+ paths :
7+ - ' src/generators/go/**'
8+ - ' test/runtime/runtime-go/**'
9+ - ' test/runtime/**go**'
1010
1111jobs :
12- test :
13- name : Runtime testing Go Models
14- if : " github.event.pull_request.draft == false &&!((github.actor == 'asyncapi-bot' && startsWith(github.event.pull_request.title, 'ci: update global workflows')) || (github.actor == 'asyncapi-bot' && startsWith(github.event.pull_request.title, 'chore(release):')) || (github.actor == 'allcontributors' && startsWith(github.event.pull_request.title, 'docs: add')))"
15- runs-on : ubuntu-latest
16- steps :
17- - name : Checkout repository
18- uses : actions/checkout@v2
19- - name : Setup Node.js
20- uses : actions/setup-node@v1
21- with :
22- node-version : 14
23- - name : Build Library
24- run : npm install && npm run build:prod
25- - name : Setup Go
26- uses : actions/setup-go@v2
27- with :
28- go-version : 1.20
29- -name : Generate Go Models
30- run : npm run generate:runtime:go
31- -name : Run runtime Tests
32- run : npm run test:runtime:go
12+ test :
13+ name : Runtime testing Go Models
14+ if : " github.event.pull_request.draft == false &&!((github.actor == 'asyncapi-bot' && startsWith(github.event.pull_request.title, 'ci: update global workflows')) || (github.actor == 'asyncapi-bot' && startsWith(github.event.pull_request.title, 'chore(release):')) || (github.actor == 'allcontributors' && startsWith(github.event.pull_request.title, 'docs: add')))"
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout repository
18+ uses : actions/checkout@v3
19+ - name : Check package-lock version
20+ uses : asyncapi/.github/.github/actions/get-node-version-from-package-lock@master
21+ id : lockversion
22+ - name : Setup Node.js
23+ uses : actions/setup-node@v3
24+ with :
25+ node-version : " ${{ steps.lockversion.outputs.version }}"
26+ cache : ' npm'
27+ cache-dependency-path : ' **/package-lock.json'
28+ - name : Build Library
29+ run : npm install && npm run build:prod
30+ - name : Setup Go
31+ uses : actions/setup-go@v4
32+ with :
33+ go-version : ' 1.22'
34+ - name : Generate Go Models
35+ run : npm run generate:runtime:go
36+ - name : Run runtime Tests
37+ run : npm run test:runtime:go
0 commit comments