-
Notifications
You must be signed in to change notification settings - Fork 45
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 #65 from mrtazz/mrtazz/cleanup
Some cleanups
- Loading branch information
Showing
9 changed files
with
116 additions
and
68 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 |
---|---|---|
|
@@ -5,16 +5,20 @@ jobs: | |
build: | ||
name: build and test | ||
runs-on: ubuntu-latest | ||
env: | ||
BUILDER_NAME: "GitHub Actions" | ||
BUILDER_EMAIL: [email protected] | ||
|
||
steps: | ||
|
||
- name: Set up Go 1.13 | ||
uses: actions/setup-go@v1 | ||
- name: Set up Go 1.17 | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.13 | ||
go-version: 1.17 | ||
id: go | ||
|
||
- name: Check out code | ||
uses: actions/checkout@master | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
|
||
|
@@ -24,26 +28,8 @@ jobs: | |
sudo dpkg -i pandoc-2.7.3-1-amd64.deb | ||
- name: build and run unit tests | ||
run: BUILDER_NAME=CI [email protected] make clean all test | ||
run: make clean all test | ||
|
||
- name: Run checkmake on Makefile | ||
run: ./checkmake Makefile | ||
|
||
docker: | ||
needs: build | ||
name: docker image build and release | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Build the Docker image | ||
run: docker build --build-arg BUILDER_NAME=CI --build-arg [email protected] . --file Dockerfile --tag mrtazz/checkmake:${GITHUB_SHA} --tag mrtazz/checkmake:latest | ||
|
||
- name: push the docker image to docker hub | ||
if: github.ref == 'refs/heads/main' | ||
run: | | ||
echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u mrtazz --password-stdin | ||
docker push mrtazz/checkmake:${GITHUB_SHA} | ||
docker push mrtazz/checkmake:latest | ||
docker logout hub.docker.com |
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,27 +1,27 @@ | ||
name: packages | ||
name: release | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
packages: | ||
name: build and deploy | ||
name: packagecloud | ||
runs-on: ubuntu-latest | ||
env: | ||
BUILDER_NAME: CI | ||
BUILDER_EMAIL: ci@actions.github.com | ||
BUILDER_NAME: "GitHub Actions" | ||
BUILDER_EMAIL: noreply@actions.github.com | ||
|
||
steps: | ||
|
||
- name: Set up Go 1.13 | ||
uses: actions/setup-go@v1 | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.13 | ||
id: go | ||
|
||
- name: Check out code | ||
uses: actions/checkout@master | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
|
||
|
@@ -40,7 +40,59 @@ jobs: | |
env: | ||
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }} | ||
|
||
release: | ||
name: github | ||
runs-on: ubuntu-latest | ||
env: | ||
BUILDER_NAME: "GitHub Actions" | ||
BUILDER_EMAIL: [email protected] | ||
|
||
steps: | ||
|
||
- name: Set up Go 1.17 | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
id: go | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: install dependencies | ||
run: | | ||
sudo wget https://github.com/jgm/pandoc/releases/download/2.7.3/pandoc-2.7.3-1-amd64.deb | ||
sudo dpkg -i pandoc-2.7.3-1-amd64.deb | ||
- name: build for platforms | ||
run: | | ||
BUILD_GOARCH=amd64 BUILD_GOOS=freebsd make build-standalone | ||
BUILD_GOARCH=amd64 BUILD_GOOS=linux make build-standalone | ||
BUILD_GOARCH=amd64 BUILD_GOOS=darwin make build-standalone | ||
- name: create release | ||
run: make github-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
docker: | ||
name: docker | ||
env: | ||
BUILDER_NAME: "GitHub Actions" | ||
BUILDER_EMAIL: [email protected] | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build the Docker image | ||
run: docker build --build-arg BUILDER_NAME=CI --build-arg [email protected] . --file Dockerfile --tag mrtazz/checkmake:${GITHUB_SHA} --tag mrtazz/checkmake:latest | ||
|
||
- name: push the docker image to docker hub | ||
if: github.ref == 'refs/heads/main' | ||
run: | | ||
echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u mrtazz --password-stdin | ||
docker push mrtazz/checkmake:${GITHUB_SHA} | ||
docker push mrtazz/checkmake:latest | ||
docker logout hub.docker.com |
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ profile.out | |
*.rpm | ||
*.deb | ||
.idea/ | ||
.release_artifacts/ |
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
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 |
---|---|---|
@@ -1,12 +1,16 @@ | ||
module github.com/mrtazz/checkmake | ||
|
||
go 1.13 | ||
go 1.17 | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/docopt/docopt-go v0.0.0-20141128170934-854c423c8108 | ||
github.com/go-ini/ini v1.11.0 | ||
github.com/olekukonko/tablewriter v0.0.0-20150822215231-b9346ac189c5 | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/stretchr/testify v1.1.4-0.20160615092844-d77da356e56a | ||
) | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/smartystreets/goconvey v1.7.2 // indirect | ||
) |
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 |
---|---|---|
@@ -1,13 +1,21 @@ | ||
# github.com/davecgh/go-spew v1.1.1 | ||
## explicit | ||
github.com/davecgh/go-spew/spew | ||
# github.com/docopt/docopt-go v0.0.0-20141128170934-854c423c8108 | ||
## explicit | ||
github.com/docopt/docopt-go | ||
# github.com/go-ini/ini v1.11.0 | ||
## explicit | ||
github.com/go-ini/ini | ||
# github.com/olekukonko/tablewriter v0.0.0-20150822215231-b9346ac189c5 | ||
## explicit | ||
github.com/olekukonko/tablewriter | ||
# github.com/pmezard/go-difflib v1.0.0 | ||
## explicit | ||
github.com/pmezard/go-difflib/difflib | ||
# github.com/smartystreets/goconvey v1.7.2 | ||
## explicit; go 1.16 | ||
# github.com/stretchr/testify v1.1.4-0.20160615092844-d77da356e56a | ||
## explicit | ||
github.com/stretchr/testify/assert | ||
github.com/stretchr/testify/require |