-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: changes for taqueria final release v0.14.4 (#35)
* chore: uses new prerelease version * chore: updated package versions * chore: changed compile command to specify the fikles * chore: changed originate to deploy * chore: fix deploy environment variable * chore: reworked compile and deploy * chore: fix package versions * chore: fix package versions * chore: fix counter storage * chore: use latest binary and packages * chore: use latest packages in hello-tacos * chore: update README
- Loading branch information
Showing
12 changed files
with
1,104 additions
and
500 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 |
---|---|---|
|
@@ -16,10 +16,7 @@ | |
"networks": [], | ||
"sandboxes": [ | ||
"local" | ||
], | ||
"storage": { | ||
"counter.tz": 42 | ||
} | ||
] | ||
} | ||
}, | ||
"accounts": { | ||
|
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 |
---|---|---|
|
@@ -4,81 +4,69 @@ A docker action that helps simplify and standardize the use of [Taqueria](https: | |
|
||
## Inputs | ||
|
||
### `project_directory` | ||
### `compile_contracts` | ||
|
||
The name of the project directory. If nothing is specified the repository root directory is used. | ||
A list of contract file names to be compiled into Michelson. The artifacts are saved to the `artifacts` directory with the `.tz` extension. | ||
|
||
### `task` | ||
### `deploy_contracts` | ||
|
||
The name of a specific task to run. This input is mainly used for testing purposes. | ||
A list of Michelson smart contract files including the `.tz` extension to be deployed to a specified environment. The Taquito plugin needs to be installed. | ||
|
||
### `plugins` | ||
### `environment` | ||
|
||
A comma separated list of plugins to install. | ||
This input is used to select the configured environment for `taqueria` to originate to. The default is set to `development`. | ||
|
||
### `sandbox_name` | ||
|
||
The name of the Flextesa sandbox to use. A sandbox will only be created if this input is specified. When running the sandbox, the action will automatically change the value of `rpcUrl` for the sandbox in `config.json`. This is to enable origination to the local sandbox in CI. | ||
### `plugins` | ||
|
||
### `contracts` | ||
A comma separated list of plugins to install. | ||
### `project_directory` | ||
|
||
A comma separated list of contracts to be added to the Taqueria project. | ||
The name of the project directory. If nothing is specified the repository root directory is used. | ||
|
||
### `compile_command` | ||
### `sandbox_name` | ||
|
||
The compile command used to compile the contracts. | ||
The name of the Flextesa sandbox to use. A sandbox will only be created if this input is specified. When running the sandbox, the action will automatically change the value of `rpcUrl` for the sandbox in `config.json`. This is to enable origination to the local sandbox in CI. | ||
|
||
### `originate` | ||
### `task` | ||
|
||
When set to true, contracts will be originated to the environment defined with the `environment` variable (leave empty for default). This option makes use of the `taquito` plugin so please make sure to install it. | ||
The name of a specific task to run. This input is mainly used for testing purposes. | ||
|
||
### `tests` | ||
|
||
When set to true, all tests in the `tests` directory will be run using the Jest plugin. This option makes use of the `jest` plugin so please make sure to install it. | ||
|
||
### `environment` | ||
|
||
This input is used to select the configured environment for `taqueria` to originate to. The default is set to `development`. | ||
|
||
## Example usage | ||
|
||
### Single step action | ||
```yaml | ||
- name: taqueria tasks | ||
uses: ecadlabs/taqueria-github-action@v0.2.0 | ||
uses: ecadlabs/taqueria-github-action@v0.4.0 | ||
with: | ||
plugins: '@taqueria/plugin-ligo, @taqueria/plugin-flextesa, @taqueria/plugin-taquito' | ||
contracts: 'counter.jsligo' | ||
compile_command: compile | ||
plugins: '@taqueria/plugin-ligo, @taqueria/plugin-flextesa, @taqueria/plugin-taquito, @taqueria/plugin-jest' | ||
compile_contracts: counter.jsligo | ||
sandbox_name: local | ||
originate: 'true' | ||
deploy_contracts: counter.tz | ||
tests: 'true' | ||
``` | ||
### Multiple step action | ||
```yaml | ||
- name: compile contracts | ||
uses: ecadlabs/taqueria-github-action@v0.2.0 | ||
uses: ecadlabs/taqueria-github-action@v0.4.0 | ||
with: | ||
project_directory: 'example-projects/hello-tacos' | ||
contracts: 'hello-tacos.mligo' | ||
compile_command: 'compile' | ||
compile_contracts: 'hello-tacos.mligo' | ||
|
||
- name: start local sandbox | ||
uses: ecadlabs/taqueria-github-action@v0.2.0 | ||
uses: ecadlabs/taqueria-github-action@v0.4.0 | ||
with: | ||
project_directory: 'example-projects/hello-tacos' | ||
sandbox_name: 'local' | ||
|
||
- name: originate contracts | ||
uses: ecadlabs/[email protected] | ||
with: | ||
project_directory: 'example-projects/hello-tacos' | ||
originate: 'true' | ||
|
||
- name: originate contracts | ||
uses: ecadlabs/[email protected] | ||
- name: deploy contracts | ||
uses: ecadlabs/[email protected] | ||
with: | ||
project_directory: 'example-projects/hello-tacos' | ||
tests: 'true' | ||
deploy_contracts: hello-tacos.tz | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// All storage values must be in this file | ||
|
||
// Define storage variable | ||
|
||
let storage:storage = 42 |
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
Oops, something went wrong.