Skip to content

Bump golang.org/x/oauth2 from 0.9.0 to 0.11.0 #1299

Bump golang.org/x/oauth2 from 0.9.0 to 0.11.0

Bump golang.org/x/oauth2 from 0.9.0 to 0.11.0 #1299

Workflow file for this run

name: Go CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
name: Continuous Integration
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
permissions:
contents: read
steps:
- name: Set up Go
uses: actions/[email protected]
with:
go-version: '1.18'
check-latest: true
- name: Check out code
uses: actions/checkout@v3
- name: Cache Go modules
uses: actions/[email protected]
id: go-mod-cache
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Lint
run: |
go install golang.org/x/tools/cmd/goimports
result=$($(go env GOPATH)/bin/goimports -d -e -local github.com/philips-labs/tabia $(go list -f {{.Dir}} ./...))
echo $result
[ -n "$result" ] && exit 1 || exit 0
- name: Get dependencies
run: go mod download
- name: Install tools
run: make install-tools
- name: Build
run: |
make build
- name: Test and Cover
run: go test -v -race -count=1 -covermode=atomic -coverprofile=coverage.out ./...
env:
TABIA_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Code Coverage
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.out
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
verbose: true
release:
name: release
needs: [build]
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
permissions:
contents: write
steps:
- name: Set up Go 1.18
uses: actions/[email protected]
with:
go-version: '1.18'
check-latest: true
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Login to DockerHub Registry
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
- name: Release
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Logout from DockerHub Registry
if: ${{ always() }}
run: docker logout