Skip to content

add workaround for Reviewdog #6

add workaround for Reviewdog

add workaround for Reviewdog #6

Workflow file for this run

name: main
on:
push:
branches:
- '**'
jobs:
test:
permissions:
contents: read
runs-on: ubuntu-latest
defaults:
run:
shell: bash -eu -o pipefail {0}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup go
id: setup-go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
- name: Download dependencies
if: ${{ steps.setup-go.outputs.cache-hit != 'true' }}
run: |
go mod download
- name: Run test
run: |
make test
reviewdog:
permissions:
contents: read
runs-on: ubuntu-latest
defaults:
run:
shell: bash -eu -o pipefail {0}
steps:
- name: Add the workspace to a safe directory # https://github.com/reviewdog/reviewdog/issues/1158
run: |
git config --global --add safe.directory $GITHUB_WORKSPACE || exit 1
- name: Checkout
uses: actions/checkout@v3
- name: Setup go
id: setup-go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
- name: Download dependencies
if: ${{ steps.setup-go.outputs.cache-hit != 'true' }}
run: |
go mod download
- name: Run reviewdog
run: |
make reviewdog