Skip to content

Commit

Permalink
Merge pull request #1 from tbrowder/new-ver
Browse files Browse the repository at this point in the history
Change to 3-OS tests
  • Loading branch information
tbrowder authored Jan 29, 2024
2 parents 9dd7442 + e47756e commit 4c9c7d6
Show file tree
Hide file tree
Showing 10 changed files with 73 additions and 17 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Linux

on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:

jobs:
raku:
strategy:
matrix:
os:
- ubuntu-latest
raku-version:
- 'latest'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: Raku/setup-raku@v1
with:
raku-version: ${{ matrix.raku-version }}
- name: Install Dependencies
run: |
zef install --/test --deps-only .
zef install --/test App::Prove6
- name: Run Tests
run: prove6 -l t
30 changes: 30 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: MacOS

on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:

jobs:
raku:
strategy:
matrix:
os:
- macos-latest
raku-version:
- 'latest'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: Raku/setup-raku@v1
with:
raku-version: ${{ matrix.raku-version }}
- name: Install Dependencies
run: |
zef install --/test --deps-only .
zef install --/test App::Prove6
- name: Run Tests
run: prove6 -l t
8 changes: 2 additions & 6 deletions .github/workflows/test.yml → .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test
name: Win64

on:
push:
Expand All @@ -13,8 +13,6 @@ jobs:
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest
raku-version:
- 'latest'
Expand All @@ -26,7 +24,5 @@ jobs:
raku-version: ${{ matrix.raku-version }}
- name: Install Dependencies
run: zef install --/test --test-depends --deps-only .
- name: Install App::Prove6
run: zef install --/test App::Prove6
- name: Run Tests
run: prove6 -l t
run: zef --debug --/prove --/tap-harness test .
4 changes: 4 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Revision history for DateTime-US

{{$NEXT}}
- Add 3-OS tests
- Use zef for Windows tests
- Update copyright year
- Remove useless test causing problems on Windows

0.1.1 2022-10-02T16:33:23-05:00
- Move US timezone data and subroutines to new
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Actions Status](https://github.com/tbrowder/DateTime-US/workflows/test/badge.svg)](https://github.com/tbrowder/DateTime-US/actions)
[![Actions Status](https://github.com/tbrowder/DateTime-US/actions/workflows/linux.yml/badge.svg)](https://github.com/tbrowder/DateTime-US/actions) [![Actions Status](https://github.com/tbrowder/DateTime-US/actions/workflows/macos.yml/badge.svg)](https://github.com/tbrowder/DateTime-US/actions) [![Actions Status](https://github.com/tbrowder/DateTime-US/actions/workflows/windows.yml/badge.svg)](https://github.com/tbrowder/DateTime-US/actions)

NAME
====
Expand Down Expand Up @@ -63,7 +63,7 @@ Tom Browder <[email protected]>
COPYRIGHT AND LICENSE
=====================

© 2021-2022 Tom Browder
© 2021-2024 Tom Browder

This library is free software; you may redistribute or modify it under the Artistic License 2.0.

4 changes: 3 additions & 1 deletion dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ filename = docs/README.rakudoc
; match = ^ 'xt/'

[Badges]
provider = github-actions/test
provider = github-actions/linux.yml
provider = github-actions/macos.yml
provider = github-actions/windows.yml
2 changes: 1 addition & 1 deletion docs/README.rakudoc
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Tom Browder <[email protected]>

=head1 COPYRIGHT AND LICENSE

© 2021-2022 Tom Browder
© 2021-2024 Tom Browder

This library is free software; you may redistribute or modify it under the Artistic License 2.0.

Expand Down
8 changes: 1 addition & 7 deletions t/01-timezones.t → t/1-timezone.t
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
use Test;
use IO::Capture::Simple;

use DateTime::US;
use Timezones::US;

plan 33;

lives-ok {
my $out = capture_stdout { show-us-data };
}
plan 32;

dies-ok {
my $tz = DateTime::US.new;
Expand Down Expand Up @@ -135,4 +130,3 @@ dies-ok {
is $tz.name, 'Chamorro', "testing attributes of $z";
is $tz.utc-offset, +10;
}

File renamed without changes.
File renamed without changes.

0 comments on commit 4c9c7d6

Please sign in to comment.