mitre / inspec_tools

A command-line and ruby API of utilities, converters and tools for creating, converting and processing security baseline formats, results and data
https://inspec-tools.mitre.org/
Other
91 stars 30 forks source link

#177 build gem once #245

Closed ColeSmith-dev closed 3 years ago

ColeSmith-dev commented 3 years ago

Modified build.yml to build inspec_tools gem once and download it during each test. Avoids unnecessary time spent building and better reflects user usage.

ColeSmith-dev commented 3 years ago

I've found out that variables cannot store multiple values like a sequence which is used by matrices. I also cannot use matrices for multiple different jobs. I believe this to mean either using a variable for the build environment which locks it to one platform or that it is necessary to update a buildPlatform sequence in test's matrix when making any change to the platforms for build.

ColeSmith-dev commented 3 years ago

I've found out that variables cannot store multiple values like a sequence which is used by matrices. I also cannot use matrices for multiple different jobs. I believe this to mean either using a variable for the build environment which locks it to one platform or that it is necessary to update a buildPlatform sequence in test's matrix when making any change to the platforms for build.

I'm working on using a JSON object for a matrix output from a new job to abstract the matrices for build and test.

ColeSmith-dev commented 3 years ago

I have undone the changes i pushed while trying to get matrix abstraction working. The build job currently runs on ubuntu-latest and ruby 2.7. The test jobs run on ubuntu-latest, macos-latest, and windows-latest on ruby 2.7.