forked from rook/rook
24 lines
422 B
YAML
24 lines
422 B
YAML
name: Mod check
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '**.go'
|
|
|
|
jobs:
|
|
modcheck:
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.15
|
|
|
|
- name: run mod check
|
|
run: GOPATH=$(go env GOPATH) make -j $(nproc) mod.check
|
|
|
|
- name: validate modcheck
|
|
run: tests/scripts/validate_modified_files.sh modcheck
|
|
|