2020-08-29 10:32:13 +03:00
|
|
|
name: Leo Release Tests
|
2020-08-04 07:00:57 +03:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
env:
|
|
|
|
RUST_BACKTRACE: 1
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
new:
|
2020-08-29 10:32:13 +03:00
|
|
|
name: Hello Leo ('leo new hello-world')
|
2020-08-04 07:00:57 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Load snarkOS
|
|
|
|
run: |
|
|
|
|
mkdir ~/.ssh
|
|
|
|
echo "${{ secrets.SNARKOS_DEPLOY_KEY }}" > ~/.ssh/id_rsa
|
|
|
|
chmod 600 ~/.ssh/id_rsa
|
|
|
|
eval $(ssh-agent -s)
|
|
|
|
ssh-add -k ~/.ssh/id_rsa
|
|
|
|
|
|
|
|
- name: Install Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: nightly
|
|
|
|
override: true
|
|
|
|
components: rustfmt
|
|
|
|
|
|
|
|
- name: Install Leo
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
env:
|
|
|
|
CARGO_NET_GIT_FETCH_WITH_CLI: true
|
|
|
|
with:
|
|
|
|
command: install
|
|
|
|
args: --path .
|
|
|
|
|
2020-08-29 10:32:13 +03:00
|
|
|
- name: 'leo new hello-world'
|
2020-08-04 07:00:57 +03:00
|
|
|
run: |
|
|
|
|
cd ..
|
2020-08-29 10:32:13 +03:00
|
|
|
leo new hello-world
|
2020-08-04 07:06:18 +03:00
|
|
|
ls -la
|
2020-08-29 10:32:13 +03:00
|
|
|
cd hello-world && ls -la
|
2020-08-04 07:00:57 +03:00
|
|
|
leo run
|
2020-08-04 07:03:47 +03:00
|
|
|
|
|
|
|
init:
|
2020-08-29 10:32:13 +03:00
|
|
|
name: Hello Leo ('leo init')
|
2020-08-04 07:03:47 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Load snarkOS
|
|
|
|
run: |
|
|
|
|
mkdir ~/.ssh
|
|
|
|
echo "${{ secrets.SNARKOS_DEPLOY_KEY }}" > ~/.ssh/id_rsa
|
|
|
|
chmod 600 ~/.ssh/id_rsa
|
|
|
|
eval $(ssh-agent -s)
|
|
|
|
ssh-add -k ~/.ssh/id_rsa
|
|
|
|
|
|
|
|
- name: Install Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: nightly
|
|
|
|
override: true
|
|
|
|
components: rustfmt
|
|
|
|
|
|
|
|
- name: Install Leo
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
env:
|
|
|
|
CARGO_NET_GIT_FETCH_WITH_CLI: true
|
|
|
|
with:
|
|
|
|
command: install
|
|
|
|
args: --path .
|
|
|
|
|
|
|
|
- name: 'leo init'
|
|
|
|
run: |
|
2020-08-29 10:32:13 +03:00
|
|
|
cd .. && mkdir hello-world && cd hello-world
|
2020-08-04 07:03:47 +03:00
|
|
|
leo init
|
2020-08-04 07:06:18 +03:00
|
|
|
ls -la
|
2020-08-04 07:03:47 +03:00
|
|
|
leo run
|