chore: trigger checks pipeline only on pull request #11
Workflow file for this run
This file contains 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: "GitHub Action: Self-Test" | |
on: | |
pull_request: | |
jobs: | |
setup-iggy: | |
name: Test setup-iggy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: Install dependencies | |
run: yarn | |
- name: Build dist | |
run: yarn run build | |
- name: Setup iggy (using local GitHub Action) | |
uses: "./" | |
with: | |
version: "0.4.71" | |
- name: Print $PATH for iggy | |
run: which iggy-server | |
- name: Print iggy version | |
run: iggy-server --version | |
- name: Check version is the one asked | |
run: | | |
VERSION=$(iggy-server --version | grep -oP 'server \K[0-9]+\.[0-9]+\.[0-9]+') | |
if [ "$VERSION" != "0.4.71" ]; then | |
echo "Error: Expected version 0.4.71, but got $VERSION" | |
exit 1 | |
fi | |
echo "Version is correct: $VERSION" |