Skip to content

feat: add ci

feat: add ci #3

Workflow file for this run

name: PR
on:
push:
branches: [master]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
script-test:
name: Script Test
runs-on: [runs-on, runner=8cpu-linux-x64, "run-id=${{ github.run_id }}"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run script tests
run: |
cd example/script
cargo test --release
solana-test:
name: Solana Test
runs-on: [runs-on, runner=8cpu-linux-x64, "run-id=${{ github.run_id }}"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Go to solana directory
run: cd example/solana
- name: NPM install
run: npm install
- name: Run build-and-test script
run: yarn build-and-test