-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
4 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,35 +14,24 @@ For an example of this in use look at [this repository's test workflow](https:// | |
- #### With a released version of Provenance | ||
```yaml | ||
- name: Smart Contract Test setup | ||
uses: provenance-io/provenance-testing-action@v1.1.2 | ||
uses: provenance-io/provenance-testing-action@v1.2.0 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
provenance_version: "v1.14.1" | ||
provenance_version: "v1.16.0" | ||
test_script: "./scripts/name_test.sh" | ||
``` | ||
- #### With a development version of Provenance | ||
Note: `provenance_version` is a branch which has an associated `Pull Request` and a **successful** run of the [Provenance Build and Release action](https://github.com/provenance-io/provenance/actions/workflows/release.yml) | ||
```yaml | ||
- name: Smart Contract Test setup | ||
uses: provenance-io/provenance-testing-action@v1.1.2 | ||
uses: provenance-io/provenance-testing-action@v1.2.0 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
provenance_version: "issue/new-feature" | ||
test_script: "./scripts/name_test.sh" | ||
``` | ||
|
||
#### Generating governance proposals | ||
```yaml | ||
- name: Smart Contract Test setup | ||
uses: provenance-io/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
provenance_version: "v1.14.1" | ||
test_script: "./scripts/name_test.sh" | ||
generate_proposals: true | ||
``` | ||
|
||
#### Using provided initial data for Provenance | ||
```yaml | ||
- name: Smart Contract Test setup | ||
|
@@ -52,13 +41,8 @@ For an example of this in use look at [this repository's test workflow](https:// | |
provenance_version: "v1.14.1" | ||
init_data: "./smart_contract_action/test/init_data" | ||
test_script: "./smart_contract_action/scripts/name_test.sh" | ||
generate_proposals: true | ||
``` | ||
|
||
After a successful run, the proposals will be added to an archive named `$GITHUB_JOB_proposals.zip` and attached to the build. | ||
|
||
**IMPORTANT**: The json proposals have placeholders for user-specific data (e.g., title, account addresses, code_id). These placeholders must be replaced in order to submit the proposal. This includes either placing the metadata contents directly into the proposal json (on-chain storage) or storing the metadata on IPFS and updating the `CID` in the proposal json. | ||
|
||
--- | ||
|
||
### Configuration | ||
|
@@ -69,5 +53,3 @@ After a successful run, the proposals will be added to an archive named `$GITHUB | |
| `provenance_version` | string | **Required** | Version of Provenance to test, either a release or a branch | | ||
| `init_data` | string | *Optional* | The directory that contains the initial seed data for Provenance. It should contain the `config`, `data`, and `keyring-test` directories. Example: [init_data](smart-contract-action%2Ftest%2Finit_data) | | ||
| `test_script` | string | *Optional* | Script used to run tests after provenance has been setup and is running | | ||
| `generate_proposals` | boolean | *Optional* | Generate the store, instantiate, and migrate governance proposals | | ||
| `wasm_path` | string | *Optional* | Path to the smart contract wasm | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
smart-contract-action/scripts/templates/governance/instantiate/draft_metadata.json
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
smart-contract-action/scripts/templates/governance/instantiate/draft_proposal.json
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
smart-contract-action/scripts/templates/governance/migrate/draft_metadata.json
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
smart-contract-action/scripts/templates/governance/migrate/draft_proposal.json
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
smart-contract-action/scripts/templates/governance/store/draft_metadata.json
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
smart-contract-action/scripts/templates/governance/store/draft_proposal.json
This file was deleted.
Oops, something went wrong.