Skip to content

Commit 89e538d

Browse files
authored
Infra upkeep (#29)
- Change how CI pipeline runs. Should only run things once. - Remove bootstrap files. - Remove stray debug line. - Upgrade dependencies. - Add task to run things.
1 parent 979d662 commit 89e538d

File tree

19 files changed

+2932
-589
lines changed

19 files changed

+2932
-589
lines changed
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Run tests
1+
name: Code Quality
22

33
on:
4+
pull_request: ~
45
push:
5-
pull_request:
66
branches:
77
- master
88

@@ -12,11 +12,11 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
php: [ 8.2, 8.3, 8.4 ]
15+
php: [ 8.3, 8.4 ]
1616
os: [ ubuntu-latest ]
1717
year: [ 2015, 2018, 2019, 2020, 2021, 2022, 2023, 2024 ]
1818

19-
name: PHP ${{ matrix.php }} - Unit Tests for Year ${{ matrix.year }}
19+
name: Unit Tests for Year ${{ matrix.year }} (PHP ${{ matrix.php }})
2020

2121
steps:
2222
- name: Checkout code
@@ -29,8 +29,7 @@ jobs:
2929
extensions: dom, curl, libxml, mbstring, zip, pcntl, intl
3030

3131
- name: Install dependencies
32-
run: |
33-
composer update --prefer-dist --no-interaction
32+
run: composer update --prefer-dist --no-interaction
3433

3534
- name: Run tests
3635
run: vendor/bin/phpunit ${{ matrix.year }}

2015/tests/StringParserTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public function testComputeEncodedStringUsage()
3333
{
3434
// Day 8 Part 2 example inputs
3535
$result = $this->stringParser->computeEncodedStringUsage($this->sampleInput);
36-
print_r($result);
3736
$this->assertEquals(19, $result['charactersOfEncodedStrings'] - $result['charactersOfStringCode']);
3837

3938
// Day 8 Part 2 inputs

2015/tests/bootstrap.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

2018/tests/bootstrap.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

2019/tests/bootstrap.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

2020/tests/bootstrap.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

2021/tests/bootstrap.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

2022/tests/bootstrap.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

2023/tests/bootstrap.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

2024/inputs/day-05-sample.input

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
47|53
2+
97|13
3+
97|61
4+
97|47
5+
75|29
6+
61|13
7+
75|53
8+
29|13
9+
97|29
10+
53|29
11+
61|53
12+
97|53
13+
61|29
14+
47|13
15+
75|47
16+
97|75
17+
47|61
18+
75|61
19+
47|29
20+
75|13
21+
53|13
22+
23+
75,47,61,53,29
24+
97,61,53,29,13
25+
75,29,13
26+
75,97,47,61,53
27+
61,13,29
28+
97,13,75,29,47

0 commit comments

Comments
 (0)