ci: trim compatibility matrix to currently-patched OpenSearch (#856) #635
Workflow file for this run
This file contains hidden or 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: 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6 | |
| with: { go-version-file: 'go.mod' } | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9 | |
| with: | |
| version: v2.12.2 | |
| args: --fix --build-tags "${{ matrix.build-tags }}" | |
| prettify: | |
| name: Prettify | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Install dependencies | |
| run: npm i -g prettier | |
| - name: Check markdown files | |
| run: prettier --prose-wrap never --print-width 300 --check **/*.md |