Skip to content

Add dependabot updates for GitHub Actions and Go modules #13

Add dependabot updates for GitHub Actions and Go modules

Add dependabot updates for GitHub Actions and Go modules #13

Workflow file for this run

name: run
on:
push:
branches:
tags:
pull_request:
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up go 1.20
uses: actions/setup-go@v3
with:
go-version: "1.20"
- name: build and test
run: go test -race -timeout=60s -covermode=atomic -coverprofile=$GITHUB_WORKSPACE/profile.cov ./...
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
- name: install goveralls
run: go install github.com/mattn/goveralls@latest
- name: submit coverage
run: |
export GIT_BRANCH="${GITHUB_REF/refs\/heads\//}"
export GIT_TAG="${GITHUB_REF/refs\/tags\//}"
if [[ "$GIT_TAG" != "$GITHUB_REF" ]]; then
export GIT_BRANCH=$GIT_TAG
fi
echo "coverage for branch $GIT_BRANCH"
goveralls -service="GitHub Action" -coverprofile=$GITHUB_WORKSPACE/profile.cov
env:
COVERALLS_TOKEN: ${{secrets.COVERALLS_TOKEN}}