Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: actions remove container + install go
  • Loading branch information
plyr4 committed Sep 7, 2022
commit cb462d443aee2cca25cb9147cda21ed2be48b637
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container:
image: golang:1.19

steps:
- name: clone
uses: actions/checkout@v3

- name: install go
uses: actions/setup-go@v3
with:
# use version from go.mod file
go-version-file: 'go.mod'
cache: true

- name: build
run: |
make build
10 changes: 8 additions & 2 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,21 @@ on:
jobs:
prerelease:
runs-on: ubuntu-latest
container:
image: golang:1.19

steps:
- name: clone
uses: actions/checkout@v3
with:
# ensures we fetch tag history for the repository
fetch-depth: 0

- name: install go
uses: actions/setup-go@v3
with:
# use version from go.mod file
go-version-file: 'go.mod'
cache: true

- name: setup
run: |
# setup git tag in Actions environment
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,21 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
container:
image: golang:1.19

steps:
- name: clone
uses: actions/checkout@v3
with:
# ensures we fetch tag history for the repository
fetch-depth: 0

- name: install go
uses: actions/setup-go@v3
with:
# use version from go.mod file
go-version-file: 'go.mod'
cache: true

- name: build
env:
GOOS: linux
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,18 @@ on:
jobs:
diff-review:
runs-on: ubuntu-latest
container:
image: golang:1.19

steps:
- name: clone
uses: actions/checkout@v3

- name: install go
uses: actions/setup-go@v3
with:
# use version from go.mod file
go-version-file: 'go.mod'
cache: true

- name: golangci-lint
uses: reviewdog/action-golangci-lint@v2
with:
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@ on:
jobs:
schema:
runs-on: ubuntu-latest
container:
image: golang:1.19

steps:
- name: clone
uses: actions/checkout@v3

- name: install go
uses: actions/setup-go@v3
with:
# use version from go.mod file
go-version-file: 'go.mod'
cache: true

- name: tags
run: |
git fetch --tags
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@ on:
jobs:
test:
runs-on: ubuntu-latest
container:
image: golang:1.19

steps:
- name: clone
uses: actions/checkout@v3

- name: install go
uses: actions/setup-go@v3
with:
# use version from go.mod file
go-version-file: 'go.mod'
cache: true

- name: test
run: |
go test -race -covermode=atomic -coverprofile=coverage.out ./...
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@ on:
jobs:
validate:
runs-on: ubuntu-latest
container:
image: golang:1.19

steps:
- name: clone
uses: actions/checkout@v3

- name: install go
uses: actions/setup-go@v3
with:
# use version from go.mod file
go-version-file: 'go.mod'
cache: true

- name: tags
run: |
git fetch --tags
Expand Down