File tree Expand file tree Collapse file tree 6 files changed +87
-0
lines changed Expand file tree Collapse file tree 6 files changed +87
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : test
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ - main
8
+ pull_request :
9
+
10
+ jobs :
11
+ test :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - uses : erlef/setup-beam@v1
16
+ with :
17
+ otp-version : " 27.1.2"
18
+ gleam-version : " 1.6.2"
19
+ rebar3-version : " 3"
20
+ # elixir-version: "1.15.4"
21
+ - run : gleam deps download
22
+ - run : gleam test
23
+ - run : gleam format --check src test
Original file line number Diff line number Diff line change
1
+ * .beam
2
+ * .ez
3
+ /build
4
+ erl_crash.dump
Original file line number Diff line number Diff line change
1
+ # tictactoe
2
+
3
+ [ ![ Package Version] ( https://img.shields.io/hexpm/v/tictactoe )] ( https://hex.pm/packages/tictactoe )
4
+ [ ![ Hex Docs] ( https://img.shields.io/badge/hex-docs-ffaff3 )] ( https://hexdocs.pm/tictactoe/ )
5
+
6
+ ``` sh
7
+ gleam add tictactoe@1
8
+ ```
9
+ ``` gleam
10
+ import tictactoe
11
+
12
+ pub fn main() {
13
+ // TODO: An example of the project in use
14
+ }
15
+ ```
16
+
17
+ Further documentation can be found at < https://hexdocs.pm/tictactoe > .
18
+
19
+ ## Development
20
+
21
+ ``` sh
22
+ gleam run # Run the project
23
+ gleam test # Run the tests
24
+ ```
Original file line number Diff line number Diff line change
1
+ name = " tictactoe"
2
+ version = " 1.0.0"
3
+
4
+ # Fill out these fields if you intend to generate HTML documentation or publish
5
+ # your project to the Hex package manager.
6
+ #
7
+ # description = ""
8
+ # licences = ["Apache-2.0"]
9
+ # repository = { type = "github", user = "", repo = "" }
10
+ # links = [{ title = "Website", href = "" }]
11
+ #
12
+ # For a full reference of all the available options, you can have a look at
13
+ # https://gleam.run/writing-gleam/gleam-toml/.
14
+
15
+ [dependencies ]
16
+ gleam_stdlib = " >= 0.34.0 and < 2.0.0"
17
+
18
+ [dev-dependencies ]
19
+ gleeunit = " >= 1.0.0 and < 2.0.0"
Original file line number Diff line number Diff line change
1
+ import gleam/io
2
+
3
+ pub fn main ( ) {
4
+ io . println ( "Hello from tictactoe!" )
5
+ }
Original file line number Diff line number Diff line change
1
+ import gleeunit
2
+ import gleeunit/should
3
+
4
+ pub fn main ( ) {
5
+ gleeunit . main ( )
6
+ }
7
+
8
+ // gleeunit test functions end in `_test`
9
+ pub fn hello_world_test ( ) {
10
+ 1
11
+ |> should . equal ( 1 )
12
+ }
You can’t perform that action at this time.
0 commit comments