File tree Expand file tree Collapse file tree 2 files changed +23
-10
lines changed Expand file tree Collapse file tree 2 files changed +23
-10
lines changed Original file line number Diff line number Diff line change @@ -15,19 +15,26 @@ jobs:
1515 steps :
1616 - name : Checkout code
1717 uses : actions/checkout@v4
18+ with :
19+ submodules : recursive
1820
1921 - name : Set up Go
2022 uses : actions/setup-go@v5
2123 with :
2224 go-version-file : go.mod
2325
24- - name : make tidy
26+ - name : Install Task
27+ uses : arduino/setup-task@v2
28+ with :
29+ version : 3.x
30+
31+ - name : task generate
2532 run : |
26- make tidy
33+ task generate --verbose
2734 git diff --exit-code
2835
29- - name : make verify
30- run : make verify
36+ - name : task validate
37+ run : task validate --verbose
3138
32- - name : make test
33- run : make test
39+ - name : task test
40+ run : task test --verbose
Original file line number Diff line number Diff line change @@ -19,13 +19,19 @@ jobs:
1919 ssh-key : ${{ secrets.PUSH_KEY }}
2020 fetch-tags : true
2121 fetch-depth : 0
22+ submodules : recursive
23+
24+ - name : Install Task
25+ uses : arduino/setup-task@v2
26+ with :
27+ version : 3.x
2228
2329 - name : Read and validate VERSION
2430 id : version
2531 run : |
26- VERSION=$(cat VERSION )
27- if [[ ! "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-dev)?$ ]]; then
28- echo "Invalid version format in VERSION file : $VERSION"
32+ VERSION=$(task version )
33+ if [[ ! "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-dev(-[0-9a-f]*)? )?$ ]]; then
34+ echo "Invalid version format: $VERSION"
2935 exit 1
3036 fi
3137 echo "New version: $VERSION"
7985 - name : Push dev VERSION
8086 if : ${{ env.SKIP != 'true' }}
8187 run : |
82- echo "${{ env.version }}-dev" > VERSION
88+ task release:set-version --verbose -- "${{ env.version }}-dev"
8389 git config user.name "${{ env.AUTHOR_NAME }}"
8490 git config user.email "${{ env.AUTHOR_EMAIL }}"
8591 git add VERSION
You can’t perform that action at this time.
0 commit comments