Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
Update github actions to go 1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
yevgenypats committed Jun 17, 2021
1 parent b66e35d commit ddcffa9
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 38 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/int_test.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: integration_test

on:
# push:
# branches:
# - main
# pull_request:
# branches: [ main ]
# push:
# branches:
# - main
# pull_request:
# branches: [ main ]
workflow_dispatch:

jobs:
postgres:
strategy:
matrix:
dbversion: ['postgres:latest']
go: ['1.15']
dbversion: ["postgres:latest"]
go: ["1.16"]
platform: [ubuntu-latest] # can not run in macOS and widnowsOS
runs-on: ${{ matrix.platform }}
services:
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.14
go-version: ^1.16
- name: Set up terraform
uses: hashicorp/setup-terraform@v1
- name: Check terraform
Expand All @@ -50,4 +50,3 @@ jobs:
run: go build -v .
- name: Integration Test
run: go test -v -p 20 ./resources/integration_tests

19 changes: 7 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,30 @@ name: release
on:
push:
tags:
- '*'
- "*"
jobs:
release:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
-
name: Run GoReleaser Dry-Run
go-version: 1.16
- name: Run GoReleaser Dry-Run
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist --skip-validate --skip-publish --skip-sign
-
name: Import GPG key
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.PRIVATE_KEY }}
-
name: Run GoReleaser
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
Expand Down
33 changes: 16 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ on:
branches:
- main
pull_request:
branches: [ main ]
branches: [main]

jobs:
postgres:
strategy:
matrix:
dbversion: ['postgres:latest', 'postgres:12', 'postgres:11']
go: ['1.15']
dbversion: ["postgres:latest", "postgres:12", "postgres:11"]
go: ["1.16"]
platform: [ubuntu-latest] # can not run in macOS and widnowsOS
runs-on: ${{ matrix.platform }}
services:
Expand All @@ -31,21 +31,20 @@ jobs:
--health-timeout 5s
--health-retries 5
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.14
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.16

- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build
run: go build -v .
- name: Build
run: go build -v .

- name: Test
run: go test -v $(go list ./... | grep -v /resources/integration_tests)

- name: Test
run: go test -v $(go list ./... | grep -v /resources/integration_tests)

0 comments on commit ddcffa9

Please sign in to comment.