Build Finschia layer-2 binary #134
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Verify that generated code is up-to-date. | |
name: Check generated code | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- '*' | |
permissions: | |
contents: read | |
jobs: | |
check-swagger: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Golang | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: Install protoc | |
uses: arduino/setup-protoc@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
- run: if [ ! -x "$(command -v yarn)" ]; then npm install -g yarn; fi | |
- name: Setup ssh config | |
env: | |
SSH_KEY: ${{secrets.PRIVATE_REPO_SSH_KEY}} | |
run: | | |
mkdir -p ~/.ssh | |
echo "$SSH_KEY" > ~/.ssh/id_rsa | |
chmod 600 ~/.ssh/id_rsa | |
- name: Setup access for private go modules | |
run: | | |
git config --global url."ssh://[email protected]/".insteadOf https://github.com/ | |
- name: Check generated swagger docs | |
run: scripts/ci/check-generated.sh |