Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Bump golang.org/x/oauth2 from 0.0.0-20220608161450-d0670ef3b1eb to 0.11.0 in /backend #395

Bump golang.org/x/oauth2 from 0.0.0-20220608161450-d0670ef3b1eb to 0.11.0 in /backend

Bump golang.org/x/oauth2 from 0.0.0-20220608161450-d0670ef3b1eb to 0.11.0 in /backend #395

Workflow file for this run

name: test_and_lint
on:
pull_request:
types: [opened, synchronize]
paths-ignore:
- 'frontend/**'
- 'ogp_functions/**'
jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 10
services:
datastore:
image: singularities/datastore-emulator
env:
DATASTORE_LISTEN_ADDRESS: 0.0.0.0:5000
DATASTORE_PROJECT_ID: midare-ci
ports:
- 5000:5000
env:
DATASTORE_EMULATOR_HOST: 127.0.0.1:5000
DATASTORE_PROJECT_ID: midare-ci
steps:
- name: Set up Go 1.17
uses: actions/setup-go@v1
with:
go-version: 1.17
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Restore cache
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Get dependencies
run: |
cd backend && go mod download
- name: Build
run: cd backend && go build -v .
- name: Get tools
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.25.0
- name: Test
run: cd backend && make test
- name: lint
run: |
cd backend && $(go env GOPATH)/bin/golangci-lint run --disable-all --enable=goimports --enable=govet