-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from WebFreak001/fix-osx
fix SSL on OSX 10.15
- Loading branch information
Showing
3 changed files
with
82 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: [macOS-latest] | ||
dc: [dmd-latest, ldc-latest] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: D Compiler Installation | ||
uses: mihails-strasuns/[email protected] | ||
with: | ||
compiler: ${{ matrix.dc }} | ||
|
||
- name: Test | ||
run: dub test --config=std |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module https; | ||
|
||
import requests; | ||
import std.experimental.logger; | ||
|
||
version(vibeD) { | ||
} | ||
else { | ||
unittest { | ||
globalLogLevel(LogLevel.info); | ||
auto rq = Request(); | ||
rq.keepAlive = false; | ||
info("Testing https using google.com"); | ||
auto rs = rq.get("https://google.com"); | ||
assert(rs.responseBody.length > 0); | ||
} | ||
} | ||
|
||
version(unittest_fakemain) { | ||
void main () {} | ||
} |