1- # Melinda node tests
1+ # Melinda node tests and webhook
22
3- name : Melinda node tests
3+ name : Melinda node tests and webhook
44
55on : push
66
@@ -11,14 +11,14 @@ jobs:
1111
1212 strategy :
1313 matrix :
14- node-version : [18.x, 20.x, 22.x, 23 .x]
14+ node-version : [22.x, 24 .x]
1515 # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
1616
1717 steps :
1818 - name : Checkout the code
19- uses : actions/checkout@v5
19+ uses : actions/checkout@v6
2020 - name : Use Node.js ${{ matrix.node-version }}
21- uses : actions/setup-node@v4
21+ uses : actions/setup-node@v6
2222 with :
2323 node-version : ${{ matrix.node-version }}
2424 cache : ' npm'
@@ -32,122 +32,126 @@ jobs:
3232 license-scan :
3333 name : License compliance check
3434 runs-on : ubuntu-latest
35+ container : node:22
3536
3637 steps :
37- - uses : actions/checkout@v5
38+ - uses : actions/checkout@v6
3839 - uses : mikaelvesavuori/license-compliance-action@main
3940 with :
4041 exclude_pattern : /^@natlibfi/
4142
4243 njsscan :
4344 name : Njsscan check
4445 runs-on : ubuntu-latest
46+ container : node:22
4547
4648 steps :
4749 - name : Checkout the code
48- uses : actions/checkout@v5
50+ uses : actions/checkout@v6
4951 - name : nodejsscan scan
5052 id : njsscan
5153 uses : ajinabraham/njsscan-action@master
5254 with :
5355 args : ' .'
5456
55- quayio :
56- name : Quay.io image builder & publisher
57- needs : [build-node-versions, njsscan]
58- runs-on : ubuntu-latest
59- if : github.actor!= 'dependabot[bot]' # ignore the pull request which comes from user dependabot, because it does not access to secrets
57+ # quayio:
58+ # name: Quay.io image builder & publisher
59+ # needs: [build-node-versions, njsscan]
60+ # runs-on: ubuntu-latest
61+ # container: node:22
62+ # if: github.actor!= 'dependabot[bot]' # ignore the pull request which comes from user dependabot, because it does not access to secrets
6063
61- steps :
62- - uses : actions/checkout@v5
63- - name : Docker meta
64- id : meta
65- uses : docker/metadata-action@v5
66- with :
67- images : quay.io/${{ github.repository }}
68- tags : |
69- type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
70- type=ref,event=branch
71- type=ref,event=pr
72- type=semver,pattern={{version}}
73- type=semver,pattern={{major}}.{{minor}}
74- type=semver,pattern={{major}}
75- - name : Login to Quay.io
76- uses : docker/login-action@v3
77- with :
78- registry : quay.io
79- username : ${{ secrets.MELINDA_QUAY_IO_USERNAME }}
80- password : ${{ secrets.MELINDA_QUAY_IO_PASSWORD }}
81- - name : Build and publish image to Quay.io
82- uses : docker/build-push-action@v6
83- with :
84- context : .
85- push : true
86- tags : ${{ steps.meta.outputs.tags }}
64+ # steps:
65+ # - uses: actions/checkout@v6
66+ # - name: Docker meta
67+ # id: meta
68+ # uses: docker/metadata-action@v5
69+ # with:
70+ # images: quay.io/${{ github.repository }}
71+ # tags: |
72+ # type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
73+ # type=ref,event=branch
74+ # type=ref,event=pr
75+ # type=semver,pattern={{version}}
76+ # type=semver,pattern={{major}}.{{minor}}
77+ # type=semver,pattern={{major}}
78+ # - name: Login to Quay.io
79+ # uses: docker/login-action@v3
80+ # with:
81+ # registry: quay.io
82+ # username: ${{ secrets.MELINDA_QUAY_IO_USERNAME }}
83+ # password: ${{ secrets.MELINDA_QUAY_IO_PASSWORD }}
84+ # - name: Build and publish image to Quay.io
85+ # uses: docker/build-push-action@v6
86+ # with:
87+ # context: .
88+ # push: true
89+ # tags: ${{ steps.meta.outputs.tags }}
8790
8891 openshift-webhook :
8992 name : OpenShift webhook for image builder
9093 needs : [build-node-versions, njsscan]
9194 runs-on : ubuntu-latest
95+ container : node:22
9296
9397 steps :
9498 - name : Production bib webhook
9599 uses : joelwmale/webhook-action@master
96100 if : github.ref == 'refs/heads/main'
97101 with :
98102 url : ${{ secrets.WEBHOOK_URL_BIB_PROD_FROM_MAIN }}
99- body : ' {}'
103+ body : ' {"event": "${{ github.event_name }}","uri": "${{ github.repository }}","ref": "${{ github.ref }}","commit": "${{ github.sha }}" }'
100104 - name : Production aut-aux webhook
101105 uses : joelwmale/webhook-action@master
102106 if : github.ref == 'refs/heads/main'
103107 with :
104108 url : ${{ secrets.WEBHOOK_URL_AUT_AUX_PROD_FROM_MAIN }}
105- body : ' {}'
109+ body : ' {"event": "${{ github.event_name }}","uri": "${{ github.repository }}","ref": "${{ github.ref }}","commit": "${{ github.sha }}" }'
106110 - name : Production aut-names webhook
107111 uses : joelwmale/webhook-action@master
108112 if : github.ref == 'refs/heads/main'
109113 with :
110114 url : ${{ secrets.WEBHOOK_URL_AUT_NAMES_PROD_FROM_MAIN }}
111- body : ' {}'
115+ body : ' {"event": "${{ github.event_name }}","uri": "${{ github.repository }}","ref": "${{ github.ref }}","commit": "${{ github.sha }}" }'
112116 - name : Production aut-subjects webhook
113117 uses : joelwmale/webhook-action@master
114118 if : github.ref == 'refs/heads/main'
115119 with :
116120 url : ${{ secrets.WEBHOOK_URL_AUT_SUBJECTS_PROD_FROM_MAIN }}
117- body : ' {}'
121+ body : ' {"event": "${{ github.event_name }}","uri": "${{ github.repository }}","ref": "${{ github.ref }}","commit": "${{ github.sha }}" }'
118122 - name : Production aut-works webhook
119123 uses : joelwmale/webhook-action@master
120124 if : github.ref == 'refs/heads/main'
121125 with :
122126 url : ${{ secrets.WEBHOOK_URL_AUT_WORKS_PROD_FROM_MAIN }}
123- body : ' {}'
127+ body : ' {"event": "${{ github.event_name }}","uri": "${{ github.repository }}","ref": "${{ github.ref }}","commit": "${{ github.sha }}" }'
124128 - name : Test aut aux webhook
125129 uses : joelwmale/webhook-action@master
126130 if : github.ref == 'refs/heads/test'
127131 with :
128132 url : ${{ secrets.WEBHOOK_URL_AUT_AUX_TEST_FROM_TEST }}
129- body : ' {}'
133+ body : ' {"event": "${{ github.event_name }}","uri": "${{ github.repository }}","ref": "${{ github.ref }}","commit": "${{ github.sha }}" }'
130134 - name : Test aut names webhook
131135 uses : joelwmale/webhook-action@master
132136 if : github.ref == 'refs/heads/test'
133137 with :
134138 url : ${{ secrets.WEBHOOK_URL_AUT_NAMES_TEST_FROM_TEST }}
135- body : ' {}'
139+ body : ' {"event": "${{ github.event_name }}","uri": "${{ github.repository }}","ref": "${{ github.ref }}","commit": "${{ github.sha }}" }'
136140 - name : Test aut subjects webhook
137141 uses : joelwmale/webhook-action@master
138142 if : github.ref == 'refs/heads/test'
139143 with :
140144 url : ${{ secrets.WEBHOOK_URL_AUT_SUBJECTS_TEST_FROM_TEST }}
141- body : ' {}'
145+ body : ' {"event": "${{ github.event_name }}","uri": "${{ github.repository }}","ref": "${{ github.ref }}","commit": "${{ github.sha }}" }'
142146 - name : Test aut works webhook
143147 uses : joelwmale/webhook-action@master
144148 if : github.ref == 'refs/heads/test'
145149 with :
146150 url : ${{ secrets.WEBHOOK_URL_AUT_WORKS_TEST_FROM_TEST }}
147- body : ' {}'
151+ body : ' {"event": "${{ github.event_name }}","uri": "${{ github.repository }}","ref": "${{ github.ref }}","commit": "${{ github.sha }}" }'
148152 - name : Test bib webhook
149153 uses : joelwmale/webhook-action@master
150154 if : github.ref == 'refs/heads/test'
151155 with :
152156 url : ${{ secrets.WEBHOOK_URL_BIB_TEST_FROM_TEST }}
153- body : ' {}'
157+ body : ' {"event": "${{ github.event_name }}","uri": "${{ github.repository }}","ref": "${{ github.ref }}","commit": "${{ github.sha }}" }'
0 commit comments