mirror of
https://github.com/rlespinasse/slugify-value.git
synced 2026-05-17 18:25:47 +00:00
test: check for each os
This commit is contained in:
committed by
Romain Lespinasse
parent
017eec94a5
commit
fbfaeca16e
18
.github/workflows/slugify.yaml
vendored
18
.github/workflows/slugify.yaml
vendored
@@ -1,8 +1,12 @@
|
|||||||
name: Slugify testing
|
name: Slugify testing
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
slugify:
|
slugify-on-os:
|
||||||
runs-on: ubuntu-latest
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@@ -21,6 +25,7 @@ jobs:
|
|||||||
[[ "${{ env.KEY_TEST_SLUG_CS }}" == "Key_Test.values" ]]
|
[[ "${{ env.KEY_TEST_SLUG_CS }}" == "Key_Test.values" ]]
|
||||||
[[ "${{ env.KEY_TEST_SLUG_URL }}" == "key_test-values" ]]
|
[[ "${{ env.KEY_TEST_SLUG_URL }}" == "key_test-values" ]]
|
||||||
[[ "${{ env.KEY_TEST_SLUG_URL_CS }}" == "Key_Test-values" ]]
|
[[ "${{ env.KEY_TEST_SLUG_URL_CS }}" == "Key_Test-values" ]]
|
||||||
|
shell: bash
|
||||||
|
|
||||||
# Test 2
|
# Test 2
|
||||||
- name: Slugify key/value
|
- name: Slugify key/value
|
||||||
@@ -35,7 +40,16 @@ jobs:
|
|||||||
[[ "${{ env.KEY_VALUE_TEST_SLUG_CS }}" == "feat-Some-Changes_to.be" ]]
|
[[ "${{ env.KEY_VALUE_TEST_SLUG_CS }}" == "feat-Some-Changes_to.be" ]]
|
||||||
[[ "${{ env.KEY_VALUE_TEST_SLUG_URL }}" == "feat-some-changes_to-be" ]]
|
[[ "${{ env.KEY_VALUE_TEST_SLUG_URL }}" == "feat-some-changes_to-be" ]]
|
||||||
[[ "${{ env.KEY_VALUE_TEST_SLUG_URL_CS }}" == "feat-Some-Changes_to-be" ]]
|
[[ "${{ env.KEY_VALUE_TEST_SLUG_URL_CS }}" == "feat-Some-Changes_to-be" ]]
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
slugify-release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: slugify-on-os
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
# Release
|
# Release
|
||||||
- name: Release this GitHub Action
|
- name: Release this GitHub Action
|
||||||
uses: rlespinasse/release-that@v1.x
|
uses: rlespinasse/release-that@v1.x
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user