Skip to content

Merge pull request #36 from 1sol-io/features/check_owner #1

Merge pull request #36 from 1sol-io/features/check_owner

Merge pull request #36 from 1sol-io/features/check_owner #1

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
all_github_action_checks:
runs-on: ubuntu-latest
needs:
- rustfmt
- test
steps:
- run: echo "Done"
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
components: rustfmt
- name: Run fmt
run: |
cargo fmt --all -- --check
# This workflow contains a single job called "build"
test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: install solana cli
run: |
sh -c "$(curl -sSfL https://release.solana.com/v1.8.14/install)"
echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
# Runs a set of commands using the runners shell
- name: run test
run: |
cargo test-bpf --manifest-path=./src/program-rust/Cargo.toml