Skip to content

Commit ebcb60e

Browse files
authored
Latest points to most recent stable release (#100)
* init test * update test and triggers * Update installer to skip rc on latest and build package * chore: [skip-ci] format code and generate build artifacts * fix: improve version check logic in installer * fix: improve version check logic in installer * fix: improve version check logic in installer * chore: [skip-ci] format code and generate build artifacts * fix: handle double hyphens in version string formatting * chore: [skip-ci] format code and generate build artifacts * fix: enhance version string formatting to handle consecutive dots * chore: [skip-ci] format code and generate build artifacts * fix: remove unnecessary pull request triggers from test workflow --------- Co-authored-by: Benbentwo <[email protected]>
1 parent 76bb54a commit ebcb60e

File tree

8 files changed

+46126
-17458
lines changed

8 files changed

+46126
-17458
lines changed

.github/workflows/test-install.yaml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Test Downloading Atmos
2+
on:
3+
workflow_dispatch: {}
4+
5+
jobs:
6+
test:
7+
runs-on: [
8+
"runs-on=${{ github.run_id }}",
9+
"runner=2cpu-linux-x64",
10+
]
11+
continue-on-error: true
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- uses: ./
17+
id: latest
18+
with:
19+
# default, but explicit for clarity
20+
atmos-version: 'latest'
21+
- uses: ./
22+
id: rc
23+
with:
24+
atmos-version: 'v1.172.0-rc.1'
25+
- uses: ./
26+
id: full-release
27+
with:
28+
atmos-version: 'v1.172.0'
29+
- uses: ./
30+
id: semver-constraint
31+
with:
32+
atmos-version: '<=1.172.0'
33+
34+
outputs:
35+
latest: "${{ steps.latest.outputs.atmos-version }}"
36+
rc: "${{ steps.rc.outputs.atmos-version }}"
37+
full-release: "${{ steps.full-release.outputs.atmos-version }}"
38+
semver-constraint: "${{ steps.semver-constraint.outputs.atmos-version }}"
39+
40+
assert:
41+
runs-on: ubuntu-latest
42+
needs: [test]
43+
steps:
44+
- uses: nick-fields/assert-action@v1
45+
with:
46+
expected: 'rc'
47+
actual: "${{ needs.test.outputs.latest }}"
48+
comparison: 'notContains'
49+
- uses: nick-fields/assert-action@v1
50+
with:
51+
expected: 'v1.172.0'
52+
actual: "${{ needs.test.outputs.full-release }}"
53+
comparison: 'exact'
54+
- uses: nick-fields/assert-action@v1
55+
with:
56+
expected: 'v1.172.0'
57+
actual: "${{ needs.test.outputs.semver-constraint }}"
58+
comparison: 'exact'
59+
- uses: nick-fields/assert-action@v1
60+
with:
61+
expected: 'v1.172.0-rc.1'
62+
actual: "${{ needs.test.outputs.rc }}"
63+
comparison: 'exact'

0 commit comments

Comments
 (0)