Skip to content

(CDPE-7090) Leverage $LASTEXITCODE for powershell jobs #114

(CDPE-7090) Leverage $LASTEXITCODE for powershell jobs

(CDPE-7090) Leverage $LASTEXITCODE for powershell jobs #114

Workflow file for this run

name: unit-test
on:
- pull_request
jobs:
podman_tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: install libcurl & libcurl4-openssl-dev
description: these packages are required to build native extensions for the 'patron' gem

Check failure on line 10 in .github/workflows/unit-test.yml

View workflow run for this annotation

GitHub Actions / unit-test

Invalid workflow file

The workflow is not valid. .github/workflows/unit-test.yml (Line: 10, Col: 9): Unexpected value 'description' .github/workflows/unit-test.yml (Line: 32, Col: 9): Unexpected value 'description'
run: |
sudo apt-get update
sudo apt-get install -y libcurl4 libcurl4-openssl-dev
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Uninstall docker
run: |
sudo apt-get update
sudo apt-get remove -y docker-ce
- name: Install podman
run: |
sudo apt-get update
sudo apt-get install -y podman
- run: bundle exec rspec spec/podman_spec.rb
docker_tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: install libcurl & libcurl4-openssl-dev
description: these packages are required to build native extensions for the 'patron' gem
run: |
sudo apt-get update
sudo apt-get install -y libcurl4 libcurl4-openssl-dev
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Uninstall podman
run: |
sudo apt-get update
sudo apt-get remove -y podman
- run: bundle exec rspec spec/docker_spec.rb
unix_tests:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
bundler-cache: false
- name: Run bundle install
run: bundle install
- run: bundle exec rspec spec/run_cd4pe_job_spec.rb
windows_tests:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
bundler-cache: false
- name: Run bundle install
run: bundle install
- run: $env:RUN_WINDOWS_UNIT_TESTS = "true"; bundle exec rspec spec/run_cd4pe_job_spec.rb