2021-12-11 21:30:03 +00:00
|
|
|
name: Fix (Dry run)
|
2021-11-24 11:03:46 +00:00
|
|
|
on:
|
|
|
|
pull_request:
|
2021-12-11 21:30:03 +00:00
|
|
|
branches: master
|
|
|
|
|
2021-11-24 11:03:46 +00:00
|
|
|
jobs:
|
2021-12-11 21:30:03 +00:00
|
|
|
fix-dryrun:
|
2021-11-24 11:03:46 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-12-19 21:39:53 +00:00
|
|
|
- name: Set up Go
|
2021-12-11 21:30:03 +00:00
|
|
|
uses: actions/setup-go@v2
|
2021-11-24 11:03:46 +00:00
|
|
|
with:
|
2022-05-26 14:55:41 +00:00
|
|
|
go-version: 1.18
|
2021-12-11 21:30:03 +00:00
|
|
|
id: go
|
|
|
|
|
|
|
|
- name: Check out code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Run fix
|
2022-01-14 14:02:39 +00:00
|
|
|
run: make fix
|
2021-12-11 21:30:03 +00:00
|
|
|
|
|
|
|
- name: Show fix result (diff)
|
2021-11-24 11:03:46 +00:00
|
|
|
run: |
|
2021-12-13 18:29:16 +00:00
|
|
|
git config core.ignorecase false
|
2021-11-24 11:03:46 +00:00
|
|
|
git status
|
|
|
|
git diff
|
2021-12-11 21:30:03 +00:00
|
|
|
|
2021-11-24 11:03:46 +00:00
|
|
|
- name: Run check
|
2022-01-14 14:02:39 +00:00
|
|
|
run: make check
|