Support running commands in repositories without action.yaml (#293)
* Comment for public function * Add git describe fallback * spelling: github * Set initial branch to satisfy tests for modern git * Clarify -even- if * Go 1.16 * Support running commands in repositories without action.yaml Support runnings commands with only a Docker file Co-authored-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
13
.github/workflows/push.yml
vendored
13
.github/workflows/push.yml
vendored
@@ -7,6 +7,9 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: 1.16
|
||||
- uses: golangci/golangci-lint-action@v2
|
||||
env:
|
||||
CGO_ENABLED: 0
|
||||
@@ -24,7 +27,7 @@ jobs:
|
||||
uses: docker/setup-qemu-action@v1
|
||||
- uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: 1.14
|
||||
go-version: 1.16
|
||||
- run: go test -cover -coverprofile=coverage.txt -covermode=atomic ./...
|
||||
env:
|
||||
CGO_ENABLED: 0
|
||||
@@ -42,7 +45,7 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: 1.14
|
||||
go-version: 1.16
|
||||
- name: Install MacOS Docker
|
||||
uses: docker-practice/actions-setup-docker@master
|
||||
- run: go test -v -timeout 1h -cover ./...
|
||||
@@ -58,6 +61,9 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: 1.16
|
||||
- name: GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v2
|
||||
with:
|
||||
@@ -90,6 +96,9 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: 1.16
|
||||
- name: GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v1
|
||||
with:
|
||||
|
2
.github/workflows/test-expressions.yml
vendored
2
.github/workflows/test-expressions.yml
vendored
@@ -1,5 +1,5 @@
|
||||
|
||||
name: "Test how expressions are handled on Github"
|
||||
name: "Test how expressions are handled on GitHub"
|
||||
on: push
|
||||
|
||||
env:
|
||||
|
2
.github/workflows/test-if.yml
vendored
2
.github/workflows/test-if.yml
vendored
@@ -1,5 +1,5 @@
|
||||
|
||||
name: "Test what expressions result in true and false on Github"
|
||||
name: "Test what expressions result in true and false on GitHub"
|
||||
on: push
|
||||
|
||||
env:
|
||||
|
Reference in New Issue
Block a user