Skip to content

Commit a03e018

Browse files
committed
CI test in preparation for a Raku Community release
1 parent 50a2066 commit a03e018

File tree

13 files changed

+1233
-1129
lines changed

13 files changed

+1233
-1129
lines changed

.github/workflows/linux.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Linux
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
tags-ignore:
8+
- '*'
9+
pull_request:
10+
11+
jobs:
12+
raku:
13+
strategy:
14+
matrix:
15+
os:
16+
- ubuntu-latest
17+
raku-version:
18+
- 'latest'
19+
runs-on: ${{ matrix.os }}
20+
steps:
21+
- uses: actions/checkout@v3
22+
- uses: Raku/setup-raku@v1
23+
with:
24+
raku-version: ${{ matrix.raku-version }}
25+
- name: Run Special Tests
26+
run: raku run-tests -i

.github/workflows/macos.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: MacOS
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
tags-ignore:
8+
- '*'
9+
pull_request:
10+
11+
jobs:
12+
raku:
13+
strategy:
14+
matrix:
15+
os:
16+
- macos-latest
17+
raku-version:
18+
- 'latest'
19+
runs-on: ${{ matrix.os }}
20+
steps:
21+
- uses: actions/checkout@v3
22+
- uses: Raku/setup-raku@v1
23+
with:
24+
raku-version: ${{ matrix.raku-version }}
25+
- name: Run Special Tests
26+
run: raku run-tests -i

.github/workflows/test.yml renamed to .github/workflows/windows.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: test
1+
name: Windows
22

33
on:
44
push:
@@ -13,16 +13,14 @@ jobs:
1313
strategy:
1414
matrix:
1515
os:
16-
- ubuntu-latest
17-
- macos-latest
1816
- windows-latest
1917
raku-version:
2018
- 'latest'
2119
runs-on: ${{ matrix.os }}
2220
steps:
23-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v3
2422
- uses: Raku/setup-raku@v1
2523
with:
2624
raku-version: ${{ matrix.raku-version }}
27-
- name: Run Tests
28-
run: raku run-tests
25+
- name: Run Special Tests
26+
run: raku run-tests -i

Changes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Revision history for Algorithm-Diff
22

33
{{$NEXT}}
4+
- Add CI badge for each OS
5+
- Modernize pod a bit
46

57
0.0.3 2024-05-02T20:16:22+02:00
68
- Correct results of diff and sdiff, antononcube++

META6.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
],
1616
"source-url": "https://github.com/raku-community-modules/Algorithm-Diff.git",
1717
"tags": [
18-
"CPAN5"
18+
"CPAN5",
19+
"DIFF",
20+
"ALGORITHM"
1921
],
2022
"test-depends": [
2123
],

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Actions Status](https://github.com/raku-community-modules/Algorithm-Diff/actions/workflows/test.yml/badge.svg)](https://github.com/raku-community-modules/Algorithm-Diff/actions)
1+
[![Actions Status](https://github.com/raku-community-modules/Algorithm-Diff/actions/workflows/linux.yml/badge.svg)](https://github.com/raku-community-modules/Algorithm-Diff/actions) [![Actions Status](https://github.com/raku-community-modules/Algorithm-Diff/actions/workflows/macos.yml/badge.svg)](https://github.com/raku-community-modules/Algorithm-Diff/actions) [![Actions Status](https://github.com/raku-community-modules/Algorithm-Diff/actions/workflows/windows.yml/badge.svg)](https://github.com/raku-community-modules/Algorithm-Diff/actions)
22

33
NAME
44
====
@@ -46,7 +46,6 @@ $count = LCS_length( @seq1, @seq2 );
4646

4747
( $seq1idxlist, $seq2idxlist ) = LCSidx( @seq1, @seq2 );
4848

49-
5049
# Complicated interfaces:
5150

5251
@diffs = diff( @seq1, @seq2 );
@@ -111,8 +110,7 @@ A naive approach might start by matching up the `a` and `b` that appear at the b
111110

112111
This finds the common subsequence `a b c z`. But actually, the LCS is `a x b y c z`:
113112

114-
a x b y c z p d q
115-
113+
a x b y c z p d q
116114
a b c a x b y c z
117115

118116
or
@@ -175,9 +173,11 @@ You use the object to iterate over *hunks*, where each hunk represents a contigu
175173

176174
The following summary of all of the methods looks a lot like Perl code but some of the symbols have different meanings:
177175

178-
[ ] Encloses optional arguments
179-
: Is followed by the default value for an optional argument
180-
| Separates alternate return results
176+
<table class="pod-table">
177+
<tbody>
178+
<tr> <td>[ ]</td> <td>Encloses optional arguments</td> </tr> <tr> <td>:</td> <td>Is followed by the default value for an optional argument</td> </tr> <tr> <td>|</td> <td>Separates alternate return results</td> </tr>
179+
</tbody>
180+
</table>
181181

182182
Method summary:
183183

dist.ini

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ name = Algorithm-Diff
22

33
[ReadmeFromPod]
44
; enabled = false
5-
filename = lib/Algorithm/Diff.rakumod
5+
filename = doc/Algorithm-Diff.rakudoc
66

77
[UploadToZef]
88

99
[PruneFiles]
1010
; match = ^ 'xt/'
1111

1212
[Badges]
13-
provider = github-actions/test.yml
13+
provider = github-actions/linux.yml
14+
provider = github-actions/macos.yml
15+
provider = github-actions/windows.yml

0 commit comments

Comments
 (0)