diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dd8866b..3838185 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,8 +16,5 @@ jobs: - uses: actions/checkout@v4 - uses: jiro4989/setup-nim-action@v1 - - name: install package - run: nimble install -y - - - name: compile example - run: nimble compileExample + - name: Test + run: nimble test diff --git a/tests/config.nims b/tests/config.nims new file mode 100644 index 0000000..a118eb2 --- /dev/null +++ b/tests/config.nims @@ -0,0 +1,2 @@ +switch("path", "$projectDir/../src") +switch("define", "ssl") diff --git a/tests/tconnect.nim b/tests/tconnect.nim new file mode 100644 index 0000000..52b9c60 --- /dev/null +++ b/tests/tconnect.nim @@ -0,0 +1,4 @@ +import smtp +let smtpConn = newSmtp(useSsl = true) +smtpConn.connect("smtp.gmail.com", Port 465) +smtpConn.close \ No newline at end of file