File tree 3 files changed +24
-8
lines changed
3 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 39
39
- name : Check for errors
40
40
run : task go:vet
41
41
42
+ check-outdated :
43
+ runs-on : ubuntu-latest
44
+
45
+ steps :
46
+ - name : Checkout repository
47
+ uses : actions/checkout@v2
48
+
49
+ - name : Install Task
50
+ uses : arduino/actions/setup-taskfile@master
51
+ with :
52
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
53
+ version : 3.x
54
+
55
+ - name : Modernize usages of outdated APIs
56
+ run : task go:fix
57
+
58
+ - name : Check if any fixes were needed
59
+ run : git diff --color --exit-code
60
+
42
61
check-style :
43
62
runs-on : ubuntu-latest
44
63
Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ tasks:
27
27
cmds :
28
28
- go vet {{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}}
29
29
30
+ go:fix :
31
+ desc : Modernize usages of outdated APIs
32
+ cmds :
33
+ - go fix {{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}}
34
+
30
35
go:lint :
31
36
desc : Lint Go code
32
37
cmds :
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments