Skip to content

chore: bump libc and sqlite to fix flatpak builds #2117

chore: bump libc and sqlite to fix flatpak builds

chore: bump libc and sqlite to fix flatpak builds #2117

Workflow file for this run

name: Go Lint
on:
pull_request:
permissions:
contents: read # Keep permissions read-only. Required to provide `repo-token` for arduino/setup-protoc@v3 stage.
jobs:
golangci:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.24
- name: Get dependencies
run: go mod download
- name: Cache Go dependencies
uses: actions/cache@v4
id: cache-go-deps
with:
path: ~/go/bin
key: go-deps-${{ runner.os }}-v4.0.2-protoc-gen-go-v1.34.1
restore-keys: |
go-deps-${{ runner.os }}-
- name: Install Go dependencies
if: steps.cache-go-deps.outputs.cache-hit != 'true'
run: |
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.1
- name: Setup Protocol Buffer Compiler
uses: arduino/setup-protoc@v3
with:
version: "29.3"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Cache go-generate-fast
uses: actions/cache@v4
with:
path: ~/.cache/go-generate-fast
key: go-generate-fast-${{ runner.os }}-${{ hashFiles('**/*.go', '**/go.mod', '**/go.sum') }}
restore-keys: |
go-generate-fast-${{ runner.os }}-
- name: Generate
env:
GO_GENERATE_FAST_DIR: ~/.cache/go-generate-fast
run: |
make generate
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
version: v2.3.1
args: --build-tags=gowaku_no_rln,lint
- name: lint-panics
run: |
make lint-panics
- name: go mod tidy
run: go mod tidy && git diff --exit-code
migration-check:
name: Check SQL migrations order
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run migration check
env:
BASE_BRANCH: ${{ github.base_ref }}
run: |
bash scripts/migration_check.sh