Repository navigation
Expand file tree
/
Copy pathpublished-release-integration.yml
More file actions
82 lines (70 loc) · 2.64 KB
/
Copy pathpublished-release-integration.yml
File metadata and controls
82 lines (70 loc) · 2.64 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: published release integration
run-name: Install published Rootform ${{ inputs.version }}
on:
workflow_dispatch:
inputs:
version:
description: Exact published Rootform version
required: true
type: string
permissions:
contents: read
concurrency:
group: published-release-integration-${{ inputs.version }}
cancel-in-progress: false
jobs:
setup:
name: install verified published release
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Check out Action
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install exact published Rootform release
id: rootform
uses: ./setup
with:
version: ${{ inputs.version }}
github-token: ""
- name: Verify installed release identity
shell: bash
env:
INSTALLED_SHA256: ${{ steps.rootform.outputs.sha256 }}
REQUESTED_VERSION: ${{ inputs.version }}
RESOLVED_VERSION: ${{ steps.rootform.outputs.version }}
run: |
set -euo pipefail
expected_version="${REQUESTED_VERSION#v}"
test "$RESOLVED_VERSION" = "$expected_version"
[[ "$INSTALLED_SHA256" =~ ^[0-9a-f]{64}$ ]]
test "$(rootform version)" = "rootform $expected_version"
- name: Check out the published fixture revision
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: rootform-dev/rootform
ref: v${{ steps.rootform.outputs.version }}
path: fixtures
persist-credentials: false
- name: Install exact Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.4.0
- name: Install locked verification dependencies
run: bun install --frozen-lockfile
- name: Exercise published CLI business paths
env:
ROOTFORM_TEST_FIXTURES: ${{ github.workspace }}/fixtures
ROOTFORM_TEST_VERSION: ${{ steps.rootform.outputs.version }}
ROOTFORM_TEST_TOKEN: ""
ROOTFORM_TEST_EVIDENCE: ${{ runner.temp }}/published-cli-evidence.json
run: bun run test:integration
- name: Preserve business integration evidence
if: always()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: published-cli-${{ steps.rootform.outputs.version }}-${{ github.sha }}
path: ${{ runner.temp }}/published-cli-evidence.json
if-no-files-found: warn
retention-days: 90