name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
This file contains hidden or 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
import { print } from "graphql"; | |
import { pipe, map } from "wonka"; | |
import { Exchange, Operation } from "urql"; | |
type FetchExchangeFn = ( | |
operation: Operation, | |
options: RequestInit | |
) => RequestInit; | |
const createFetchExchange = (fn: FetchExchangeFn): Exchange => { |
This file contains hidden or 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
require 'github_api' | |
require 'tracker_api' | |
GITHUB_USER = 'username or organization' | |
GITHUB_REPO = 'repo' | |
GITHUB_LOGIN = 'username' | |
GITHUB_PASSWORD = '***' | |
PIVOTAL_TOKEN = '***' | |
PIVOTAL_PROJECT_ID = 'last segment of the pivotal URL' |
This file contains hidden or 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
FROM golang:alpine as build | |
WORKDIR /usr/src/app | |
RUN apk --no-cache add upx | |
COPY ./server.go ./ | |
ENV CGO_ENABLED=0 | |
RUN go build -o server server.go | |
RUN upx --brute server | |
# --- |
This file contains hidden or 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
type None = null | undefined; | |
export class Maybe<T> { | |
private _value: T | undefined; | |
public constructor(value: T | None) { | |
this._value = value === null ? undefined : value; | |
} | |
public value(): T | undefined { |
This file contains hidden or 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
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "esnext", | |
"module": "esnext", | |
"strict": true, | |
"jsx": "preserve", | |
"importHelpers": true, | |
"moduleResolution": "node", | |
"experimentalDecorators": true, | |
"esModuleInterop": true, |
This file contains hidden or 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
Run options: | |
include {:focus=>true} | |
exclude {:compat=>true} | |
All examples were filtered out; ignoring {:focus=>true} | |
Running with ActiveRecord 5.2.1 | |
..........................................................................................................................................................................F..............F......F..F...F....FFF.................F............F....F........F.......FF...FF............ | |
Failures: |
This file contains hidden or 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
openapi: 3.0.0 | |
info: | |
title: MyAPI | |
description: MY API | |
version: 0.0.0 | |
servers: | |
- url: http://localhost:8080/api/ | |
paths: | |
/example: | |
get: |
This file contains hidden or 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
openapi: 3.0.0 | |
info: | |
title: MyAPI | |
description: MY API | |
version: 0.0.0 | |
servers: | |
- url: http://localhost:8080/api/ | |
paths: | |
/example: | |
get: |