Skip to content

Add test workflows based on salt-test #6

Add test workflows based on salt-test

Add test workflows based on salt-test #6

name: Fast unit tests
on:
push:
branches: [openSUSE/release/3006.0]
pull_request:
branches: [openSUSE/release/3006.0]
workflow_dispatch:
jobs:
fast-unit-tests:
runs-on: ubuntu-latest
env:
GITHUB_ACTIONS=$GITHUB_ACTIONS

Check failure on line 14 in .github/workflows/unit-fast-opensuse-leap.yml

View workflow run for this annotation

GitHub Actions / Fast unit tests

Invalid workflow file

The workflow is not valid. .github/workflows/unit-fast-opensuse-leap.yml (Line: 14, Col: 7): Unexpected value 'GITHUB_ACTIONS=$GITHUB_ACTIONS'
container:
image: registry.opensuse.org/systemsmanagement/saltstack/products/testing/containers/leap15.5/containers/salt-testsuite-github:leap15.5
options: --hostname=salt-test-container
steps:
- name: Checkout Salt
uses: actions/checkout@v4
- name: Fix the Salt version in _version.txt file
run: rpm -q python3-salt-testsuite --queryformat '%{VERSION}' > $GITHUB_WORKSPACE/salt/_version.txt
- name: Run Fast unit tests
run: |
salt-test --skiplist https://raw.githubusercontent.com/openSUSE/salt-test-skiplist/main/skipped_tests.toml \
--directory . --package-flavor classic unit -- -vvv