Skip to content

GoLang and Gofish update (#75) #366

GoLang and Gofish update (#75)

GoLang and Gofish update (#75) #366

Workflow file for this run

name: Test
env:
GO_VERSION: '1.22'
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: checkout rie
uses: actions/checkout@v4
with:
path: csm-redfish-interface-emulator
repository: Cray-HPE/csm-redfish-interface-emulator
ref: v1.5.0
fetch-depth: 0
- name: checkout shellspec
uses: actions/checkout@v4
with:
path: shellspec
ref: c209cb49a60b2a7727632373caf37e98649104f7 # pins at a specific commit for stability
repository: shellspec/shellspec
fetch-depth: 0
- if: ${{ matrix.os == 'macos-latest' }}
name: install docker for macos
run: |
HOMEBREW_NO_AUTO_UPDATE=1 brew install --cask docker
sudo /Applications/Docker.app/Contents/MacOS/Docker --unattended --install-privileged-components
open -a /Applications/Docker.app --args --unattended --accept-license
echo "waiting for Docker to start...this can take a while on github runners"
while ! /Applications/Docker.app/Contents/Resources/bin/docker info &>/dev/null; do sleep 1; done
- name: login to algol60 container registry
uses: docker/login-action@v3
with:
registry: artifactory.algol60.net
username: ${{ secrets.ARTIFACTORY_ALGOL60_USERNAME }}
password: ${{ secrets.ARTIFACTORY_ALGOL60_TOKEN }}
- name: standup simulation environment
id: setup-simulation-environment
continue-on-error: false
shell: bash
run: |
spec/support/bin/setup_simulator.sh ./csm-redfish-interface-emulator ./testdata/fixtures/rie/docker-compose.simple.yaml
- name: functional, integration, and edge tests
shell: bash
run: |
ln -s "$PWD"/shellspec/shellspec /usr/local/bin/
make test