Skip to content

Commit 8292b87

Browse files
authored
bump opinit and cleanup github actions (#59)
1 parent a315134 commit 8292b87

19 files changed

+116
-297
lines changed

.github/ISSUE_TEMPLATE/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/Release_notes.md

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 15 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,24 @@
11
---
22
name: Bug report
3-
about: Create a report to help us improve (use this for suspected bugs only, if not sure, open a regular issue below)
4-
title: ''
5-
labels: Bug
6-
assignees: ''
3+
about: Create a report to help us improve
4+
title: ""
5+
labels: ""
6+
assignees: ""
77
---
88

9-
<!-- This issue tracker is only for technical issues related to Initia.
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
1011

11-
General initia questions and/or support requests are best directed to the initia support team.
12+
**To Reproduce**
13+
Steps to reproduce the behavior:
1214

13-
-->
14-
15-
<!-- Describe the issue -->
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
1619

1720
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
1822

19-
<!--- What behavior did you expect? Describe what the software should do in response to a specific action or command.-->
20-
21-
**Actual behavior**
22-
23-
<!--- What did the software actually do when you performed the action or command? If you're unsure whether the issue is related to Initia, feel free to ask us for clarification."
24-
-->
25-
26-
**To reproduce**
27-
28-
<!--- How reliably can you reproduce the issue, what are the steps to do so? -->
29-
30-
**System information**
31-
32-
<!-- What version of initia are you using, where did you get it (website, self-compiled, etc)? -->
33-
34-
<!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->
35-
36-
<!-- initia-related issue? What is your operating system and its version? If Linux, what is your desktop environment and graphical shell? -->
37-
38-
<!-- Any extra information that might be useful in the debugging process. -->
23+
**Additional context**
24+
Add any other context about the problem here.
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: ''
5-
labels: Feature
6-
assignees: ''
7-
4+
title: ""
5+
labels: ""
6+
assignees: ""
87
---
98

109
**Is your feature request related to a problem? Please describe.**
11-
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
1211

1312
**Describe the solution you'd like**
14-
<!-- A clear and concise description of what you want to happen. -->
13+
A clear and concise description of what you want to happen.
1514

1615
**Describe alternatives you've considered**
17-
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
16+
A clear and concise description of any alternative solutions or features you've considered.
1817

1918
**Additional context**
20-
<!-- Add any other context or screenshots about the feature request here. -->
19+
Add any other context or screenshots about the feature request here.

.github/ISSUE_TEMPLATE/good_first_issue.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/gui_issue.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 46 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,46 @@
1-
<!--
2-
*** Please remove the following help text before submitting: ***
3-
4-
Pull requests without a rationale and clear improvement may be closed
5-
immediately.
6-
7-
-->
8-
9-
<!--
10-
Please provide clear motivation for your patch and explain how it improves
11-
initia user experience or initia developer experience
12-
significantly:
13-
14-
* Any test improvements or new tests that improve coverage are always welcome.
15-
* All other changes should have accompanying unit tests (see `src/test/`) or
16-
functional tests (see `test/`). Contributors should note which tests cover
17-
modified code. If no tests exist for a region of modified code, new tests
18-
should accompany the change.
19-
* Bug fixes are most welcome when they come with steps to reproduce or an
20-
explanation of the potential issue as well as reasoning for the way the bug
21-
was fixed.
22-
* Features are welcome, but might be rejected due to design or scope issues.
23-
If a feature is based on a lot of dependencies, contributors should first
24-
consider building the system outside of initia, if possible.
25-
-->
26-
27-
<!--
28-
Initia has a thorough review process and even the most trivial change
29-
needs to pass a lot of eyes and requires non-zero or even substantial time
30-
effort to review. There is a huge lack of active reviewers on the project, so
31-
patches often sit for a long time.
32-
-->
1+
# Description
2+
3+
Closes: #XXXX
4+
5+
<!-- Add a description of the changes that this PR introduces and the files that
6+
are the most critical to review. -->
7+
8+
---
9+
10+
## Author Checklist
11+
12+
_All items are required. Please add a note to the item if the item is not applicable and
13+
please add links to any relevant follow up issues._
14+
15+
I have...
16+
17+
- [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title, you can find examples of the prefixes below:
18+
<!-- * `feat`: A new feature
19+
* `fix`: A bug fix
20+
* `docs`: Documentation only changes
21+
* `style`: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
22+
* `refactor`: A code change that neither fixes a bug nor adds a feature
23+
* `perf`: A code change that improves performance
24+
* `test`: Adding missing tests or correcting existing tests
25+
* `build`: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
26+
* `ci`: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
27+
* `chore`: Other changes that don't modify src or test files
28+
* `revert`: Reverts a previous commit -->
29+
- [ ] confirmed `!` in the type prefix if API or client breaking change
30+
- [ ] targeted the correct branch
31+
- [ ] provided a link to the relevant issue or specification
32+
- [ ] reviewed "Files changed" and left comments if necessary
33+
- [ ] included the necessary unit and integration tests
34+
- [ ] updated the relevant documentation or specification, including comments for [documenting Go code](https://blog.golang.org/godoc)
35+
- [ ] confirmed all CI checks have passed
36+
37+
## Reviewers Checklist
38+
39+
_All items are required. Please add a note if the item is not applicable and please add
40+
your handle next to the items reviewed if you only reviewed selected items._
41+
42+
I have...
43+
44+
- [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
45+
- [ ] confirmed all author checklist items have been addressed
46+
- [ ] reviewed state machine logic, API design and naming, documentation is accurate, tests and test coverage

.github/workflows/build-darwin-amd64.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Go
1616
uses: actions/setup-go@v4
1717
with:
18-
go-version: '1.22.4'
18+
go-version: "1.22.4"
1919

2020
- name: Set environment variables
2121
run: |
@@ -31,7 +31,7 @@ jobs:
3131
echo "VERSION=${VERSION}" >> $GITHUB_ENV
3232
echo "ARCH_NAME=x86_64" >> $GITHUB_ENV
3333
WASMVM_VERSION=$(go list -m github.com/CosmWasm/wasmvm/v2 | awk '{print $2}')
34-
echo "WASMVM_VERSION=${WASMVM_VERSION}" >> $GITHUB_ENV
34+
echo "WASMVM_VERSION=${WASMVM_VERSION}" >> $GITHUB_ENV
3535
3636
- name: Ensure dependencies
3737
run: |
@@ -47,8 +47,6 @@ jobs:
4747
echo "WASMVM_VERSION=${WASMVM_VERSION}"
4848
echo "MINIWASM_NETWORK_NAME=${MINIWASM_NETWORK_NAME}"
4949
50-
51-
5250
- name: Build and Package for Darwin ADM642
5351
run: |
5452
cd ../miniwasm \
@@ -59,10 +57,13 @@ jobs:
5957
&& cp ~/go/pkg/mod/github.com/\!cosm\!wasm/wasmvm/v2@${WASMVM_VERSION}/internal/api/libwasmvm.dylib ./ \
6058
&& tar -czvf miniwasm_"$VERSION"_Darwin_"$ARCH_NAME".tar.gz ./minitiad libwasmvm.dylib \
6159
&& mv ./miniwasm_"$VERSION"_Darwin_"$ARCH_NAME".tar.gz $GITHUB_WORKSPACE/ \
62-
&& rm -rf ./libwasmvm.dylib ./minitiad
60+
&& rm -rf ./libwasmvm.dylib ./minitiad
6361
6462
- name: Release
6563
uses: softprops/action-gh-release@v2
6664
with:
6765
files: |
6866
miniwasm_${{ env.VERSION }}_Darwin_${{ env.ARCH_NAME }}.tar.gz
67+
env:
68+
VERSION: ${{ env.VERSION }}
69+
ARCH_NAME: ${{ env.ARCH_NAME }}

.github/workflows/build-darwin-arm64.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: Build Darwin ARM64
32

43
on:
@@ -15,7 +14,7 @@ jobs:
1514
- name: Set up Go
1615
uses: actions/setup-go@v4
1716
with:
18-
go-version: '1.22.4'
17+
go-version: "1.22.4"
1918
- name: Set environment variables
2019
run: |
2120
MINIWASM_NETWORK_NAME="miniwasm-1"
@@ -31,12 +30,12 @@ jobs:
3130
fi
3231
echo "VERSION=${VERSION}" >> $GITHUB_ENV
3332
echo "ARCH_NAME=aarch64" >> $GITHUB_ENV
34-
33+
3534
- name: Ensure dependencies
3635
run: |
3736
go mod tidy
3837
go get github.com/CosmWasm/wasmvm/v2@${WASMVM_VERSION}
39-
38+
4039
- name: Print environment variables
4140
run: |
4241
echo "GOARCH=${GOARCH}"
@@ -55,10 +54,13 @@ jobs:
5554
&& cp ~/go/pkg/mod/github.com/\!cosm\!wasm/wasmvm/v2@${WASMVM_VERSION}/internal/api/libwasmvm.dylib ./ \
5655
&& tar -czvf miniwasm_"$VERSION"_Darwin_"$ARCH_NAME".tar.gz ./minitiad libwasmvm.dylib \
5756
&& mv ./miniwasm_"$VERSION"_Darwin_"$ARCH_NAME".tar.gz $GITHUB_WORKSPACE/ \
58-
&& rm -rf ./libwasmvm.dylib ./minitiad
59-
57+
&& rm -rf ./libwasmvm.dylib ./minitiad
58+
6059
- name: Release
6160
uses: softprops/action-gh-release@v2
6261
with:
6362
files: |
6463
miniwasm_${{ env.VERSION }}_Darwin_${{ env.ARCH_NAME }}.tar.gz
64+
env:
65+
VERSION: ${{ env.VERSION }}
66+
ARCH_NAME: ${{ env.ARCH_NAME }}

.github/workflows/build-linux-amd64.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
21
name: Build Linux AMD64
32

4-
on:
5-
workflow_call
3+
on: workflow_call
64

75
jobs:
86
build:
@@ -14,7 +12,7 @@ jobs:
1412
- name: Set up Go
1513
uses: actions/setup-go@v4
1614
with:
17-
go-version: '1.22.4'
15+
go-version: "1.22.4"
1816

1917
- name: Set environment variables
2018
run: |
@@ -50,3 +48,6 @@ jobs:
5048
with:
5149
files: |
5250
./build/miniwasm_${{ env.VERSION }}_Linux_${{ env.ARCH_NAME }}.tar.gz
51+
env:
52+
VERSION: ${{ env.VERSION }}
53+
ARCH_NAME: ${{ env.ARCH_NAME }}

0 commit comments

Comments
 (0)