Skip to content

fix(opensearchtransport): don't let unverified discovered nodes mask … #660

fix(opensearchtransport): don't let unverified discovered nodes mask …

fix(opensearchtransport): don't let unverified discovered nodes mask … #660

Workflow file for this run

name: Lint check
on: [push, pull_request]
env:
GITHUB_ACTIONS: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
strategy:
matrix:
# golangci-lint can only compile one point in the build-tag space per
# run. Two mutually-exclusive boolean axes (integration/!integration and
# multinode/!multinode) partition the source tree, so a single tag set
# can never lint every file. Feature tags (core, plugins, ...) are
# pure-OR alternatives and union harmlessly into every run, so complete
# coverage needs one run per (integration, multinode) combination.
build-tags:
- "core plugins plugin_security plugin_index_management"
- "integration core plugins plugin_security plugin_index_management"
- "integration core plugins plugin_security plugin_index_management multinode"
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v6
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with: { go-version-file: 'go.mod' }
- name: golangci-lint
uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9
with:
version: v2.12.2
args: --fix --build-tags "${{ matrix.build-tags }}"
prettify:
name: Prettify
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v6
- name: Install dependencies
run: npm i -g prettier
- name: Check markdown files
run: |
make lint.markdown
git diff --exit-code || { echo "::error::Markdown files are not formatted. Run 'make lint.markdown' and commit the result."; exit 1; }