| 1 |
name: Pre-build |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [ main ] |
| 6 |
pull_request: |
| 7 |
branches: [ main ] |
| 8 |
|
| 9 |
env: |
| 10 |
GO_VERSION: '1.20.12' |
| 11 |
|
| 12 |
jobs: |
| 13 |
check: |
| 14 |
runs-on: ubuntu-20.04 |
| 15 |
steps: |
| 16 |
- uses: actions/checkout@v3 |
| 17 |
with: |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
fetch-depth: 21 |
| 23 |
- uses: actions/setup-go@v4 |
| 24 |
with: |
| 25 |
go-version: ${{ env.GO_VERSION }} |
| 26 |
- run: wget https://github.com/google/flatbuffers/releases/download/v22.9.29/Linux.flatc.binary.g++-10.zip |
| 27 |
- run: unzip Linux.flatc.binary.g++-10.zip |
| 28 |
- run: ./scripts/install-check-tools.sh |
| 29 |
- run: ./scripts/check-ltag.sh |
| 30 |
- run: ./scripts/check-dco.sh |
| 31 |
- run: ./scripts/check-lint.sh |
| 32 |
- run: PATH=$PATH:$(pwd) ./scripts/check-flatc.sh |