-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added log formats and support methods. (#3)
- Loading branch information
Showing
7 changed files
with
142 additions
and
24 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,25 @@ | ||
name: Test | ||
|
||
on: push | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Checkout actions repository | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: msales/github-actions | ||
ref: master | ||
token: ${{ secrets.GH_TOKEN }} | ||
path: .github/actions/external | ||
|
||
- name: Run the tests | ||
id: test | ||
uses: ./.github/actions/external/go-test | ||
with: | ||
org_token: ${{ secrets.GH_TOKEN }} |
This file was deleted.
Oops, something went wrong.
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,17 @@ | ||
FROM msales/go-builder:1.15-base-1.0.0 as builder | ||
|
||
# This image only serves testing purposes. | ||
|
||
# Set token | ||
ARG GITHUB_TOKEN | ||
RUN git config --global url."https://${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/" | ||
|
||
WORKDIR /app | ||
|
||
COPY ./ . | ||
|
||
ENV GOPRIVATE github.com/msales | ||
ENV GO111MODULE on | ||
|
||
# It's a library. Build will only check if the code can be compiled successfully. | ||
RUN go build -v ./... |
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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
module github.com/msales/logged | ||
|
||
go 1.15 | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/stretchr/testify v1.2.2 | ||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 | ||
) |
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
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