Pull in the latest spellcheck config #9131
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
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@v4 | |
- name: Import environment variables from file | |
run: cat ".github/env" >> $GITHUB_ENV | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
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@v3 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- 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 |