This repository has been archived by the owner on Nov 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update workflows * Add check target to test all golang versions * Fix makefile * Testing * Install dockerlint * Undo tests * Test permissions * Exit with code 1 when docker check fails * Exit with code 1 when docker check fails * Revert permissions
- Loading branch information
1 parent
cbcc2ff
commit 98739d9
Showing
4 changed files
with
68 additions
and
49 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,38 @@ | ||
on: pull_request | ||
name: Run checks | ||
jobs: | ||
go-checks: | ||
name: Run go checks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Test Go Modules Vendor | ||
uses: ./ | ||
env: | ||
IMPORT: cedrickring/golang-action | ||
PROJECT_PATH: ./tests/projects/go_modules_vendored | ||
- name: Test Go Modules | ||
uses: ./ | ||
env: | ||
IMPORT: cedrickring/golang-action | ||
PROJECT_PATH: ./tests/projects/go_modules | ||
- name: Test Go Standard | ||
uses: ./ | ||
env: | ||
IMPORT: cedrickring/golang-action | ||
PROJECT_PATH: ./tests/projects/go_standard | ||
action-checks: | ||
name: Run action checks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install dockerfile_lint | ||
run: sudo npm i -g dockerfile_lint | ||
- name: Lint | ||
run: make lint | ||
- name: Test | ||
run: make test | ||
- name: Docker Build | ||
run: make build | ||
- name: Check all versions | ||
run: make docker-check |
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,50 +1,21 @@ | ||
on: release | ||
name: Build and Publish | ||
name: Publish to Docker Hub | ||
jobs: | ||
testGoDepVendor: | ||
name: Test Go Dep Vendor | ||
publish: | ||
name: Publish docker images | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Test Go Dep Vendor | ||
uses: ./ | ||
env: | ||
IMPORT: cedrickring/golang-action | ||
PROJECT_PATH: ./tests/projects/go_dep_vendored | ||
- name: Test Go Dep | ||
uses: ./ | ||
env: | ||
IMPORT: cedrickring/golang-action | ||
PROJECT_PATH: ./tests/projects/go_dep | ||
- name: Test Go Modules Vendor | ||
uses: ./ | ||
env: | ||
IMPORT: cedrickring/golang-action | ||
PROJECT_PATH: ./tests/projects/go_modules_vendored | ||
- name: Test Go Modules | ||
uses: ./ | ||
env: | ||
IMPORT: cedrickring/golang-action | ||
PROJECT_PATH: ./tests/projects/go_modules | ||
- name: Test Go Standard | ||
uses: ./ | ||
env: | ||
IMPORT: cedrickring/golang-action | ||
PROJECT_PATH: ./tests/projects/go_standard | ||
- name: Install dockerfile_lint | ||
run: sudo npm i -g dockerfile_lint | ||
- name: Lint | ||
run: make lint | ||
- name: Test | ||
run: make test | ||
- name: Docker Login | ||
uses: azure/docker-login@v1 | ||
with: | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
- name: Docker Build | ||
run: make build | ||
- name: Docker Tag | ||
run: make docker-tag | ||
- name: Build | ||
run: make test | ||
- name: Docker Publish | ||
run: make publish |
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