Skip to content

✨ extend aws.account. fields (#5987) #11725

✨ extend aws.account. fields (#5987)

✨ extend aws.account. fields (#5987) #11725

name: Generated Code Test
## Only trigger tests if source is changing
on:
push:
paths:
- '**.proto'
- '**.lr'
- '**.go'
env:
PROTO_VERSION: "21.7"
jobs:
# Check if there is any dirty change for generated files
generated-files:
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Import environment variables from file
run: cat ".github/env" >> $GITHUB_ENV
- name: Install Go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version: ">=${{ env.golang-version }}"
cache: false
# We do not permit sudo on self-hosted runners
- name: "Ensure GCC is installed"
run: |
if gcc --version; then
echo "Good to go";
else
echo "Install GCC on the runner.";
fi
# Note we do not use apt install -y protobuf-compiler` since it is too old
- name: Install Protoc
uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ env.protoc-version }}
- name: Check generated files
run: |
protoc --version
make prep
make cnquery/generate
SKIP_COMPILE=yes make providers/build
git diff --exit-code *.go
git diff --exit-code providers/**/*.lr.json
git diff --exit-code providers/**/*.lr.go
git diff --exit-code providers/**/*.resources.json