forked from KyberNetwork/kyberswap-dex-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 842 Bytes
/
ci.yaml
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
name: 'CI'
concurrency:
group: ci-workflow-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
permissions: write-all
on:
workflow_dispatch:
push:
branches:
- 'main'
- 'release*'
pull_request:
jobs:
ci:
uses: KyberNetwork/service-framework/.github/workflows/ci.yaml@main
with:
runs-on: ubuntu-latest
secrets: inherit
generate-check:
name: Check generated codes update-to-date
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Run "go generate ./..."
run: go generate ./... || true
- name: Check working tree clean after go generate
run: '[ -z "$(git status --porcelain)" ]'