Skip to content

⬆️ Bump golang.org/x/oauth2 from 0.20.0 to 0.21.0 (#84) #328

⬆️ Bump golang.org/x/oauth2 from 0.20.0 to 0.21.0 (#84)

⬆️ Bump golang.org/x/oauth2 from 0.20.0 to 0.21.0 (#84) #328

Workflow file for this run

name: CI Flow
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Compile Action
run: go build -v ./...
unit-testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Run Unit Test with Racecondition Detector
run: go test -race ./...
- name: Run Unit Tests with Coverage
run: go test -coverprofile=coverage.txt -covermode=atomic -v ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: coverage.txt
flags: unit-tests
name: codecov-action
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false