Fork of daniellemaywood.uk/gleam — Wasm codegen work
2

Configure Feed

Select the types of activity you want to include in your feed.

test: clean up tests

+1 -59
+1 -5
.github/workflows/ci.yaml
··· 501 501 502 502 - name: Test publishing with default main 503 503 run: ./test.sh 504 - working-directory: ./test/default_main 505 - 506 - - name: Test publishing with default main and doc 507 - run: ./test.sh 508 - working-directory: ./test/default_main_with_doc 504 + working-directory: ./test/publishing_default_main
test/default_main/.gitignore test/publishing_default_main/.gitignore
test/default_main/gleam.toml test/publishing_default_main/gleam.toml
test/default_main/manifest.toml test/publishing_default_main/manifest.toml
test/default_main/src/default_main.gleam test/publishing_default_main/src/default_main.gleam
test/default_main/src/default_main/one.gleam test/publishing_default_main/src/default_main/one.gleam
test/default_main/src/default_main/two.gleam test/publishing_default_main/src/default_main/two.gleam
test/default_main/test.sh test/publishing_default_main/test.sh
-3
test/default_main_with_doc/.gitignore
··· 1 - *.beam 2 - *.ez 3 - build
-7
test/default_main_with_doc/gleam.toml
··· 1 - name = "default_main" 2 - version = "1.0.0" 3 - description = "Test project for default main" 4 - licences = ["Apache-2.0"] 5 - 6 - [dependencies] 7 - gleam_stdlib = ">= 0.44.0 and < 2.0.0"
-9
test/default_main_with_doc/manifest.toml
··· 1 - # This file was generated by Gleam 2 - # You typically do not need to edit this file 3 - 4 - packages = [ 5 - { name = "gleam_stdlib", version = "0.62.1", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "0080706D3A5A9A36C40C68481D1D231D243AF602E6D2A2BE67BA8F8F4DFF45EC" }, 6 - ] 7 - 8 - [requirements] 9 - gleam_stdlib = { version = ">= 0.44.0 and < 2.0.0" }
-6
test/default_main_with_doc/src/default_main.gleam
··· 1 - import gleam/io 2 - 3 - /// This is the main function 4 - pub fn main() -> Nil { 5 - io.println("Hello from default_main!") 6 - }
-3
test/default_main_with_doc/src/default_main/one.gleam
··· 1 - pub fn one() { 2 - "hello from one!" 3 - }
-3
test/default_main_with_doc/src/default_main/two.gleam
··· 1 - pub fn two() { 2 - "hello from two!" 3 - }
-23
test/default_main_with_doc/test.sh
··· 1 - #!/bin/sh 2 - 3 - set -eu 4 - 5 - GLEAM_COMMAND=${GLEAM_COMMAND:-"cargo run --quiet --"} 6 - 7 - g() { 8 - echo "Running: $GLEAM_COMMAND $@" 9 - $GLEAM_COMMAND "$@" 10 - } 11 - 12 - echo Resetting the build directory to get to a known state 13 - rm -fr build 14 - 15 - echo Running publish should publish 16 - if ! yes "n" | g publish; then 17 - echo "Expected publish to succeed, but it failed" 18 - exit 1 19 - fi 20 - 21 - echo 22 - echo Success! 💖 23 - echo