@@ -336,6 +336,10 @@ jobs:
336
336
user-id : ' Debian'
337
337
match-pattern : ' *Debian*'
338
338
default-absent-tool : ' dos2unix'
339
+ - wsl-id : ' Alpine'
340
+ user-id : ' Alpine'
341
+ match-pattern : ' *Alpine*'
342
+ default-absent-tool : ' dos2unix'
339
343
- wsl-id : ' kali-linux'
340
344
user-id : ' kali-linux'
341
345
match-pattern : ' *Kali*'
@@ -824,6 +828,10 @@ jobs:
824
828
user-id : ' Debian'
825
829
match-pattern : ' *Debian*'
826
830
default-absent-tool : ' dos2unix'
831
+ - wsl-id : ' Alpine'
832
+ user-id : ' Alpine'
833
+ match-pattern : ' *Alpine*'
834
+ default-absent-tool : ' dos2unix'
827
835
- wsl-id : ' kali-linux'
828
836
user-id : ' kali-linux'
829
837
match-pattern : ' *Kali*'
@@ -920,6 +928,10 @@ jobs:
920
928
user-id : ' Debian'
921
929
match-pattern : ' *Debian*'
922
930
default-absent-tool : ' dos2unix'
931
+ - wsl-id : ' Alpine'
932
+ user-id : ' Alpine'
933
+ match-pattern : ' *Alpine*'
934
+ default-absent-tool : ' dos2unix'
923
935
- wsl-id : ' kali-linux'
924
936
user-id : ' kali-linux'
925
937
match-pattern : ' *Kali*'
@@ -1049,6 +1061,10 @@ jobs:
1049
1061
user-id : ' Debian'
1050
1062
match-pattern : ' *Debian*'
1051
1063
default-absent-tool : ' dos2unix'
1064
+ - wsl-id : ' Alpine'
1065
+ user-id : ' Alpine'
1066
+ match-pattern : ' *Alpine*'
1067
+ default-absent-tool : ' dos2unix'
1052
1068
- wsl-id : ' kali-linux'
1053
1069
user-id : ' kali-linux'
1054
1070
match-pattern : ' *Kali*'
@@ -1274,6 +1290,10 @@ jobs:
1274
1290
user-id : ' Debian'
1275
1291
match-pattern : ' *Debian*'
1276
1292
default-absent-tool : ' dos2unix'
1293
+ - wsl-id : ' Alpine'
1294
+ user-id : ' Alpine'
1295
+ match-pattern : ' *Alpine*'
1296
+ default-absent-tool : ' dos2unix'
1277
1297
- wsl-id : ' kali-linux'
1278
1298
user-id : ' kali-linux'
1279
1299
match-pattern : ' *Kali*'
@@ -1479,26 +1499,31 @@ jobs:
1479
1499
match-pattern : ' *Debian*'
1480
1500
default-absent-tool : ' dos2unix'
1481
1501
distribution2 :
1502
+ wsl-id : ' Alpine'
1503
+ user-id : ' Alpine'
1504
+ match-pattern : ' *Alpine*'
1505
+ default-absent-tool : ' dos2unix'
1506
+ distribution3 :
1482
1507
wsl-id : ' kali-linux'
1483
1508
user-id : ' kali-linux'
1484
1509
match-pattern : ' *Kali*'
1485
1510
default-absent-tool : ' dos2unix'
1486
- distribution3 :
1511
+ distribution4 :
1487
1512
wsl-id : ' openSUSE-Leap-15.2'
1488
1513
user-id : ' openSUSE-Leap-15.2'
1489
1514
match-pattern : ' *openSUSE*Leap*15.2*'
1490
1515
default-absent-tool : ' which'
1491
- distribution4 :
1516
+ distribution5 :
1492
1517
wsl-id : ' Ubuntu'
1493
1518
user-id : ' Ubuntu-20.04'
1494
1519
match-pattern : ' *Ubuntu*20.04*'
1495
1520
default-absent-tool : ' dos2unix'
1496
- distribution5 :
1521
+ distribution6 :
1497
1522
wsl-id : ' Ubuntu-18.04'
1498
1523
user-id : ' Ubuntu-18.04'
1499
1524
match-pattern : ' *Ubuntu*18.04*'
1500
1525
default-absent-tool : ' dos2unix'
1501
- distribution6 :
1526
+ distribution7 :
1502
1527
wsl-id : ' Ubuntu-16.04'
1503
1528
user-id : ' Ubuntu-16.04'
1504
1529
match-pattern : ' *Ubuntu*16.04*'
@@ -1509,26 +1534,31 @@ jobs:
1509
1534
match-pattern : ' *Debian*'
1510
1535
default-absent-tool : ' dos2unix'
1511
1536
distribution2 :
1537
+ wsl-id : ' Alpine'
1538
+ user-id : ' Alpine'
1539
+ match-pattern : ' *Alpine*'
1540
+ default-absent-tool : ' dos2unix'
1541
+ distribution3 :
1512
1542
wsl-id : ' kali-linux'
1513
1543
user-id : ' kali-linux'
1514
1544
match-pattern : ' *Kali*'
1515
1545
default-absent-tool : ' dos2unix'
1516
- distribution3 :
1546
+ distribution4 :
1517
1547
wsl-id : ' openSUSE-Leap-15.2'
1518
1548
user-id : ' openSUSE-Leap-15.2'
1519
1549
match-pattern : ' *openSUSE*Leap*15.2*'
1520
1550
default-absent-tool : ' which'
1521
- distribution4 :
1551
+ distribution5 :
1522
1552
wsl-id : ' Ubuntu'
1523
1553
user-id : ' Ubuntu-22.04'
1524
1554
match-pattern : ' *Ubuntu*22.04*'
1525
1555
default-absent-tool : ' dos2unix'
1526
- distribution5 :
1556
+ distribution6 :
1527
1557
wsl-id : ' Ubuntu-18.04'
1528
1558
user-id : ' Ubuntu-18.04'
1529
1559
match-pattern : ' *Ubuntu*18.04*'
1530
1560
default-absent-tool : ' dos2unix'
1531
- distribution6 :
1561
+ distribution7 :
1532
1562
wsl-id : ' Ubuntu-16.04'
1533
1563
user-id : ' Ubuntu-16.04'
1534
1564
match-pattern : ' *Ubuntu*16.04*'
@@ -1579,6 +1609,12 @@ jobs:
1579
1609
distribution : ' ${{ matrix.distributions.distribution6.user-id }}'
1580
1610
set-as-default : ' false'
1581
1611
- id : ' step-7'
1612
+ name : ' Execute action for ${{ matrix.distributions.distribution7.user-id }}'
1613
+ uses : ' ./'
1614
+ with :
1615
+ distribution : ' ${{ matrix.distributions.distribution7.user-id }}'
1616
+ set-as-default : ' false'
1617
+ - id : ' step-8'
1582
1618
name : ' Test - wsl-bash_${{ matrix.distributions.distribution1.user-id }} should use the correct distribution'
1583
1619
shell : ' wsl-bash_Debian {0}'
1584
1620
run : |-
@@ -1587,59 +1623,68 @@ jobs:
1587
1623
if : |-
1588
1624
always()
1589
1625
&& (steps.step-1.outcome == 'success')
1590
- - id : ' step-8 '
1626
+ - id : ' step-9 '
1591
1627
name : ' Test - wsl-bash_${{ matrix.distributions.distribution2.user-id }} should use the correct distribution'
1592
- shell : ' wsl-bash_kali-linux {0}'
1628
+ shell : ' wsl-bash_Alpine {0}'
1593
1629
run : |-
1594
1630
cat <(lsb_release -a || true) <(uname -a || true) <([ -d /etc ] && find /etc -maxdepth 1 -type f \( -name '*release' -or -name 'issue*' \) -exec cat {} + || true) <([ -d /etc/products.d ] && find /etc/products.d -maxdepth 1 -type f -name '*.prod' -exec cat {} + || true) <([ -f /proc/version ] && cat /proc/version || true)
1595
1631
[[ "$(cat <(lsb_release -a || true) <(uname -a || true) <([ -d /etc ] && find /etc -maxdepth 1 -type f \( -name '*release' -or -name 'issue*' \) -exec cat {} + || true) <([ -d /etc/products.d ] && find /etc/products.d -maxdepth 1 -type f -name '*.prod' -exec cat {} + || true) <([ -f /proc/version ] && cat /proc/version || true))" == ${{ matrix.distributions.distribution2.match-pattern }} ]]
1596
1632
if : |-
1597
1633
always()
1598
1634
&& (steps.step-2.outcome == 'success')
1599
- - id : ' step-9 '
1635
+ - id : ' step-10 '
1600
1636
name : ' Test - wsl-bash_${{ matrix.distributions.distribution3.user-id }} should use the correct distribution'
1601
- shell : ' wsl-bash_openSUSE-Leap-15.2 {0}'
1637
+ shell : ' wsl-bash_kali-linux {0}'
1602
1638
run : |-
1603
1639
cat <(lsb_release -a || true) <(uname -a || true) <([ -d /etc ] && find /etc -maxdepth 1 -type f \( -name '*release' -or -name 'issue*' \) -exec cat {} + || true) <([ -d /etc/products.d ] && find /etc/products.d -maxdepth 1 -type f -name '*.prod' -exec cat {} + || true) <([ -f /proc/version ] && cat /proc/version || true)
1604
1640
[[ "$(cat <(lsb_release -a || true) <(uname -a || true) <([ -d /etc ] && find /etc -maxdepth 1 -type f \( -name '*release' -or -name 'issue*' \) -exec cat {} + || true) <([ -d /etc/products.d ] && find /etc/products.d -maxdepth 1 -type f -name '*.prod' -exec cat {} + || true) <([ -f /proc/version ] && cat /proc/version || true))" == ${{ matrix.distributions.distribution3.match-pattern }} ]]
1605
1641
if : |-
1606
1642
always()
1607
1643
&& (steps.step-3.outcome == 'success')
1608
- - id : ' step-10 '
1644
+ - id : ' step-11 '
1609
1645
name : ' Test - wsl-bash_${{ matrix.distributions.distribution4.user-id }} should use the correct distribution'
1610
- shell : ' wsl-bash_Ubuntu-22.04 {0}'
1646
+ shell : ' wsl-bash_openSUSE-Leap-15.2 {0}'
1611
1647
run : |-
1612
1648
cat <(lsb_release -a || true) <(uname -a || true) <([ -d /etc ] && find /etc -maxdepth 1 -type f \( -name '*release' -or -name 'issue*' \) -exec cat {} + || true) <([ -d /etc/products.d ] && find /etc/products.d -maxdepth 1 -type f -name '*.prod' -exec cat {} + || true) <([ -f /proc/version ] && cat /proc/version || true)
1613
1649
[[ "$(cat <(lsb_release -a || true) <(uname -a || true) <([ -d /etc ] && find /etc -maxdepth 1 -type f \( -name '*release' -or -name 'issue*' \) -exec cat {} + || true) <([ -d /etc/products.d ] && find /etc/products.d -maxdepth 1 -type f -name '*.prod' -exec cat {} + || true) <([ -f /proc/version ] && cat /proc/version || true))" == ${{ matrix.distributions.distribution4.match-pattern }} ]]
1614
1650
if : |-
1615
1651
always()
1616
1652
&& (steps.step-4.outcome == 'success')
1617
- && (matrix.distributions.distribution4.user-id != 'Ubuntu-20.04')
1618
- - id : ' step-11'
1619
- name : ' Test - wsl-bash_${{ matrix.distributions.distribution4.user-id }} should use the correct distribution'
1620
- shell : ' wsl-bash_Ubuntu-20.04 {0}'
1653
+ - id : ' step-12'
1654
+ name : ' Test - wsl-bash_${{ matrix.distributions.distribution5.user-id }} should use the correct distribution'
1655
+ shell : ' wsl-bash_Ubuntu-22.04 {0}'
1621
1656
run : |-
1622
1657
cat <(lsb_release -a || true) <(uname -a || true) <([ -d /etc ] && find /etc -maxdepth 1 -type f \( -name '*release' -or -name 'issue*' \) -exec cat {} + || true) <([ -d /etc/products.d ] && find /etc/products.d -maxdepth 1 -type f -name '*.prod' -exec cat {} + || true) <([ -f /proc/version ] && cat /proc/version || true)
1623
- [[ "$(cat <(lsb_release -a || true) <(uname -a || true) <([ -d /etc ] && find /etc -maxdepth 1 -type f \( -name '*release' -or -name 'issue*' \) -exec cat {} + || true) <([ -d /etc/products.d ] && find /etc/products.d -maxdepth 1 -type f -name '*.prod' -exec cat {} + || true) <([ -f /proc/version ] && cat /proc/version || true))" == ${{ matrix.distributions.distribution4 .match-pattern }} ]]
1658
+ [[ "$(cat <(lsb_release -a || true) <(uname -a || true) <([ -d /etc ] && find /etc -maxdepth 1 -type f \( -name '*release' -or -name 'issue*' \) -exec cat {} + || true) <([ -d /etc/products.d ] && find /etc/products.d -maxdepth 1 -type f -name '*.prod' -exec cat {} + || true) <([ -f /proc/version ] && cat /proc/version || true))" == ${{ matrix.distributions.distribution5 .match-pattern }} ]]
1624
1659
if : |-
1625
1660
always()
1626
- && (steps.step-4 .outcome == 'success')
1627
- && (matrix.distributions.distribution4 .user-id != 'Ubuntu-22 .04')
1628
- - id : ' step-12 '
1661
+ && (steps.step-5 .outcome == 'success')
1662
+ && (matrix.distributions.distribution5 .user-id != 'Ubuntu-20 .04')
1663
+ - id : ' step-13 '
1629
1664
name : ' Test - wsl-bash_${{ matrix.distributions.distribution5.user-id }} should use the correct distribution'
1630
- shell : ' wsl-bash_Ubuntu-18 .04 {0}'
1665
+ shell : ' wsl-bash_Ubuntu-20 .04 {0}'
1631
1666
run : |-
1632
1667
cat <(lsb_release -a || true) <(uname -a || true) <([ -d /etc ] && find /etc -maxdepth 1 -type f \( -name '*release' -or -name 'issue*' \) -exec cat {} + || true) <([ -d /etc/products.d ] && find /etc/products.d -maxdepth 1 -type f -name '*.prod' -exec cat {} + || true) <([ -f /proc/version ] && cat /proc/version || true)
1633
1668
[[ "$(cat <(lsb_release -a || true) <(uname -a || true) <([ -d /etc ] && find /etc -maxdepth 1 -type f \( -name '*release' -or -name 'issue*' \) -exec cat {} + || true) <([ -d /etc/products.d ] && find /etc/products.d -maxdepth 1 -type f -name '*.prod' -exec cat {} + || true) <([ -f /proc/version ] && cat /proc/version || true))" == ${{ matrix.distributions.distribution5.match-pattern }} ]]
1634
1669
if : |-
1635
1670
always()
1636
1671
&& (steps.step-5.outcome == 'success')
1637
- - id : ' step-13'
1672
+ && (matrix.distributions.distribution5.user-id != 'Ubuntu-22.04')
1673
+ - id : ' step-14'
1638
1674
name : ' Test - wsl-bash_${{ matrix.distributions.distribution6.user-id }} should use the correct distribution'
1639
- shell : ' wsl-bash_Ubuntu-16 .04 {0}'
1675
+ shell : ' wsl-bash_Ubuntu-18 .04 {0}'
1640
1676
run : |-
1641
1677
cat <(lsb_release -a || true) <(uname -a || true) <([ -d /etc ] && find /etc -maxdepth 1 -type f \( -name '*release' -or -name 'issue*' \) -exec cat {} + || true) <([ -d /etc/products.d ] && find /etc/products.d -maxdepth 1 -type f -name '*.prod' -exec cat {} + || true) <([ -f /proc/version ] && cat /proc/version || true)
1642
1678
[[ "$(cat <(lsb_release -a || true) <(uname -a || true) <([ -d /etc ] && find /etc -maxdepth 1 -type f \( -name '*release' -or -name 'issue*' \) -exec cat {} + || true) <([ -d /etc/products.d ] && find /etc/products.d -maxdepth 1 -type f -name '*.prod' -exec cat {} + || true) <([ -f /proc/version ] && cat /proc/version || true))" == ${{ matrix.distributions.distribution6.match-pattern }} ]]
1643
1679
if : |-
1644
1680
always()
1645
1681
&& (steps.step-6.outcome == 'success')
1682
+ - id : ' step-15'
1683
+ name : ' Test - wsl-bash_${{ matrix.distributions.distribution7.user-id }} should use the correct distribution'
1684
+ shell : ' wsl-bash_Ubuntu-16.04 {0}'
1685
+ run : |-
1686
+ cat <(lsb_release -a || true) <(uname -a || true) <([ -d /etc ] && find /etc -maxdepth 1 -type f \( -name '*release' -or -name 'issue*' \) -exec cat {} + || true) <([ -d /etc/products.d ] && find /etc/products.d -maxdepth 1 -type f -name '*.prod' -exec cat {} + || true) <([ -f /proc/version ] && cat /proc/version || true)
1687
+ [[ "$(cat <(lsb_release -a || true) <(uname -a || true) <([ -d /etc ] && find /etc -maxdepth 1 -type f \( -name '*release' -or -name 'issue*' \) -exec cat {} + || true) <([ -d /etc/products.d ] && find /etc/products.d -maxdepth 1 -type f -name '*.prod' -exec cat {} + || true) <([ -f /proc/version ] && cat /proc/version || true))" == ${{ matrix.distributions.distribution7.match-pattern }} ]]
1688
+ if : |-
1689
+ always()
1690
+ && (steps.step-7.outcome == 'success')
0 commit comments