Skip to content

Commit b630d88

Browse files
committed
Initial commit.
0 parents  commit b630d88

File tree

12 files changed

+1429
-0
lines changed

12 files changed

+1429
-0
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
on: [push]
2+
jobs:
3+
test:
4+
runs-on: ubuntu-latest
5+
steps:
6+
- uses: actions/checkout@v2
7+
- uses: allusion-be/setup-dfx@main
8+
with:
9+
dfx-version: 0.7.1
10+
- run: dfx --version
11+
- run: moc --version

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
lib

LICENSE

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Copyright 2021 Allusion
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of
4+
this software and associated documentation files (the "Software"), to deal in
5+
the Software without restriction, including without limitation the rights to
6+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
7+
the Software, and to permit persons to whom the Software is furnished to do so,
8+
subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Setup The Internet Computer SDK
2+
3+
This action sets up a dfx environment, also includes `moc`.
4+
5+
## Usage
6+
7+
```yml
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: allusion-be/setup-dfx@main
11+
with:
12+
dfx-version: 0.7.1
13+
- run: |
14+
dfx --version
15+
moc --version
16+
```
17+
18+
## Possible Improvements
19+
20+
1. Make use of the [manifest.json](https://sdk.dfinity.org/manifest.json) to check versions.
21+
2. The path is currently always `/home/runner/...`, is there a better way to do this?
22+
3. Include `base` modules in the `moc` command.
23+
(i.e. `moc --package base $(dfx cache show)/base`)
24+
25+
## License
26+
The scripts and documentation in this project are released under the [MIT License](./LICENSE).

action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: 'Setup dfx environment'
2+
description: 'Setup a dfx environment and add it to the PATH.'
3+
inputs:
4+
dfx-version:
5+
description: 'The dfx version to download.'
6+
runs:
7+
using: 'node12'
8+
main: 'dist/index.js'

0 commit comments

Comments
 (0)