Skip to content

Commit

Permalink
chore: add test installation on the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Jun 12, 2024
1 parent d273419 commit 697c0a5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/post-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,13 @@ jobs:
branch-suffix: timestamp
title: "docs: update documentation assets"
delete-branch: true

check-install-script:
name: Installation script (remote)
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}

steps:
- run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "./install-golangci-lint"
11 changes: 11 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,17 @@ jobs:
# needed for github-action-config.json generation
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

check-local-install-script:
name: Installation script (local)
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Check installation script
run: cat ./install.sh | sh -s -- -d -b "./install-golangci-lint"

# Note: the command `run` is tested by the previous steps (`make test`).
commands:
needs: golangci-lint
Expand Down
7 changes: 4 additions & 3 deletions .golangci.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2944,13 +2944,14 @@ issues:
# Default: ""
new-from-patch: path/to/patch/file

# Show issues in any part of update files (requires new-from-rev or new-from-patch).
# Default: false
whole-files: true

# Fix found issues (if it's supported by the linter).
# Default: false
fix: true

# Show issues in any part of update files (requires new-from-rev or new-from-patch).
# Default: false
whole-files: true

severity:
# Set the default severity for issues.
Expand Down

0 comments on commit 697c0a5

Please sign in to comment.