-
Notifications
You must be signed in to change notification settings - Fork 7
48 lines (43 loc) · 1016 Bytes
/
api-specs-up-to-date.yml
File metadata and controls
48 lines (43 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Check API specs
on:
push:
branches:
- main
tags:
- "**"
pull_request:
schedule:
- cron: "0 10 * * 2" # Every Tuesday at 10:00 UTC
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-24.04
defaults:
run:
working-directory: ./client
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up node 22
uses: actions/setup-node@v6
with:
node-version: "22"
- name: Install client dependencies
run: npm clean-install
- name: Update the API specs
run: |
npm run update-api
npm run generate-api
npm run format
- name: Check if any spec is out of date
run: |
result="$(git status --porcelain)"
echo "$result"
test -z "$result"