Skip to content

Commit

Permalink
2017: Add nodejs setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jp7677 committed Dec 15, 2024
1 parent 2b6e825 commit d9b3b7c
Show file tree
Hide file tree
Showing 11 changed files with 3,916 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@ on:
workflow_dispatch:

jobs:
AoC-2017:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
- name: Compile and run AoC 2017
run: |
cd 2017
npm ci
npx jest
AoC-2018:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 2 additions & 0 deletions 2017/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea/**/*
node_modules/**/*
16 changes: 16 additions & 0 deletions 2017/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Advent of Code 2017 Typescript

From <https://adventofcode.com/2017>. Better late than never ;)

## System requirements

- Node.js 22

Only Linux has been tested. Other platforms might just work though.

## Compile & run

```bash
npm ci
npx jest
```
1 change: 1 addition & 0 deletions 2017/data/day00-input.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
7 changes: 7 additions & 0 deletions 2017/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/** @type {import('ts-jest').JestConfigWithTsJest} **/
module.exports = {
testEnvironment: "node",
transform: {
"^.+.tsx?$": ["ts-jest",{}],
},
};
Loading

0 comments on commit d9b3b7c

Please sign in to comment.