-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.01 KB
/
action-self-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: "GitHub Action: Self-Test"
on:
push:
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"