Skip to content

Commit 99d1781

Browse files
committed
chore: add test installation on the CI
1 parent d273419 commit 99d1781

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/post-release.yml

+10
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,13 @@ jobs:
103103
branch-suffix: timestamp
104104
title: "docs: update documentation assets"
105105
delete-branch: true
106+
107+
check-install-script:
108+
name: Installation script (remote)
109+
strategy:
110+
matrix:
111+
os: [ubuntu-latest, macos-latest, windows-latest]
112+
runs-on: ${{ matrix.os }}
113+
114+
steps:
115+
- run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "./install-golangci-lint"

.github/workflows/pr.yml

+11
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,17 @@ jobs:
128128
# needed for github-action-config.json generation
129129
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
130130

131+
check-local-install-script:
132+
name: Installation script (local)
133+
strategy:
134+
matrix:
135+
os: [ubuntu-latest, macos-latest, windows-latest]
136+
runs-on: ${{ matrix.os }}
137+
steps:
138+
- uses: actions/checkout@v4
139+
- name: Check installation script
140+
run: cat ./install.sh | sh -s -- -d -b "./install-golangci-lint"
141+
131142
# Note: the command `run` is tested by the previous steps (`make test`).
132143
commands:
133144
needs: golangci-lint

0 commit comments

Comments
 (0)