aboutsummaryrefslogtreecommitdiff
path: root/aoc2023
diff options
context:
space:
mode:
authorJ.J <thechairman@thechairman.info>2023-11-30 17:10:00 -0500
committerJ.J <thechairman@thechairman.info>2023-11-30 17:10:00 -0500
commit8ab65dc2da1742eb86ec636c50c7018385b68167 (patch)
treec4fd556aca9b867cfa1f2f174128c30857353884 /aoc2023
parentfafbeaf9e3c09ba7a5bea7e47d5736001f8a5aa1 (diff)
downloadgleam_aoc-8ab65dc2da1742eb86ec636c50c7018385b68167.tar.gz
gleam_aoc-8ab65dc2da1742eb86ec636c50c7018385b68167.zip
prep for 2023, renaming for consistency
Diffstat (limited to 'aoc2023')
-rw-r--r--aoc2023/.github/workflows/test.yml23
-rw-r--r--aoc2023/.gitignore4
-rw-r--r--aoc2023/README.md22
-rw-r--r--aoc2023/gleam.toml16
-rw-r--r--aoc2023/src/aoc2023.gleam5
-rw-r--r--aoc2023/test/aoc2023_test.gleam12
6 files changed, 82 insertions, 0 deletions
diff --git a/aoc2023/.github/workflows/test.yml b/aoc2023/.github/workflows/test.yml
new file mode 100644
index 0000000..cf2096e
--- /dev/null
+++ b/aoc2023/.github/workflows/test.yml
@@ -0,0 +1,23 @@
+name: test
+
+on:
+ push:
+ branches:
+ - master
+ - main
+ pull_request:
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - uses: erlef/setup-beam@v1
+ with:
+ otp-version: "26.0.2"
+ gleam-version: "0.32.4"
+ rebar3-version: "3"
+ # elixir-version: "1.15.4"
+ - run: gleam deps download
+ - run: gleam test
+ - run: gleam format --check src test
diff --git a/aoc2023/.gitignore b/aoc2023/.gitignore
new file mode 100644
index 0000000..170cca9
--- /dev/null
+++ b/aoc2023/.gitignore
@@ -0,0 +1,4 @@
+*.beam
+*.ez
+build
+erl_crash.dump
diff --git a/aoc2023/README.md b/aoc2023/README.md
new file mode 100644
index 0000000..921dfae
--- /dev/null
+++ b/aoc2023/README.md
@@ -0,0 +1,22 @@
+# aoc2023
+
+[![Package Version](https://img.shields.io/hexpm/v/aoc2023)](https://hex.pm/packages/aoc2023)
+[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/aoc2023/)
+
+## Quick start
+
+```sh
+gleam run # Run the project
+gleam test # Run the tests
+gleam shell # Run an Erlang shell
+```
+
+## Installation
+
+If available on Hex this package can be added to your Gleam project:
+
+```sh
+gleam add aoc2023
+```
+
+and its documentation can be found at <https://hexdocs.pm/aoc2023>.
diff --git a/aoc2023/gleam.toml b/aoc2023/gleam.toml
new file mode 100644
index 0000000..df51c5d
--- /dev/null
+++ b/aoc2023/gleam.toml
@@ -0,0 +1,16 @@
+name = "aoc2023"
+version = "0.1.0"
+
+# Fill out these fields if you intend to generate HTML documentation or publish
+# your project to the Hex package manager.
+#
+# description = ""
+# licences = ["Apache-2.0"]
+# repository = { type = "github", user = "username", repo = "project" }
+# links = [{ title = "Website", href = "https://gleam.run" }]
+
+[dependencies]
+gleam_stdlib = "~> 0.32"
+
+[dev-dependencies]
+gleeunit = "~> 1.0"
diff --git a/aoc2023/src/aoc2023.gleam b/aoc2023/src/aoc2023.gleam
new file mode 100644
index 0000000..ea5c211
--- /dev/null
+++ b/aoc2023/src/aoc2023.gleam
@@ -0,0 +1,5 @@
+import gleam/io
+
+pub fn main() {
+ io.println("Hello from aoc2023!")
+}
diff --git a/aoc2023/test/aoc2023_test.gleam b/aoc2023/test/aoc2023_test.gleam
new file mode 100644
index 0000000..3831e7a
--- /dev/null
+++ b/aoc2023/test/aoc2023_test.gleam
@@ -0,0 +1,12 @@
+import gleeunit
+import gleeunit/should
+
+pub fn main() {
+ gleeunit.main()
+}
+
+// gleeunit test functions end in `_test`
+pub fn hello_world_test() {
+ 1
+ |> should.equal(1)
+}