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
name: CI - Integration Test | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] |
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
### Certs | |
FROM alpine:latest as certs | |
RUN apk --update add ca-certificates | |
### Base | |
FROM golang:1.12.14-alpine3.10 as base | |
ENV CGO_ENABLED=0 \ | |
GOOS=linux \ | |
GOARCH=amd64 |
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
package main | |
import ( | |
"ahm/callbacks" | |
"log" | |
"net/http" | |
) | |
func handleRequest() { | |
http.HandleFunc("/", callbacks.HomePage) |
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
package callbacks | |
import ( | |
"fmt" | |
"net/http" | |
) | |
func HomePage(w http.ResponseWriter, r *http.Request) { | |
fmt.Fprintf(w, "Welcome to the homepage") | |
} |