Skip to content

chore: pull monorepo changes (#118) #94

chore: pull monorepo changes (#118)

chore: pull monorepo changes (#118) #94

Workflow file for this run

name: Anchor Tests
on:
workflow_dispatch:
push:
branches:
- "main"
paths:
- "javascript/solana.js/**"
- "programs/**"
- "rust/switchboard-v2/**"
jobs:
vrfClientTests:
name: "VRF Client Tests"
runs-on: ubuntu-latest
timeout-minutes: 25
defaults:
run:
shell: bash
strategy:
matrix:
nodeVersion: [18, 19.7]
steps:
- uses: actions/checkout@v3
- name: Setup Workspace
uses: ./.github/actions/setup-workspace
with:
solanaVersion: "v1.16.1"
anchorVersion: "0.28.0"
nodeVersion: ${{ matrix.nodeVersion }}
- name: Cache Build
id: cache-anchor-vrf-build
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
./programs/anchor-vrf-parser/deploy
./programs/anchor-vrf-parser/target
key:
${{ runner.os }}-AnchorVrfParser-${{
hashFiles('./programs/anchor-vrf-parser/Cargo.toml',
'./programs/anchor-vrf-parser/src/**') }}
- name: Anchor Build
working-directory: examples/vrf/01_vrf_client
run: pnpm build
- name: Anchor Test
working-directory: examples/vrf/01_vrf_client
run: anchor test
feedClientTests:
name: "Feed Client Tests"
runs-on: ubuntu-latest
timeout-minutes: 25
defaults:
run:
shell: bash
strategy:
matrix:
nodeVersion: [18, 19.7]
steps:
- uses: actions/checkout@v3
- name: Setup Workspace
uses: ./.github/actions/setup-workspace
with:
solanaVersion: "v1.16.1"
anchorVersion: "0.28.0"
nodeVersion: ${{ matrix.nodeVersion }}
- name: Cache Build
id: cache-anchor-feed-build
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
./programs/anchor-feed-parser/deploy
./programs/anchor-feed-parser/target
key:
${{ runner.os }}-AnchorFeedParser-${{
hashFiles('./programs/anchor-feed-parser/Cargo.toml',
'./programs/anchor-feed-parser/src/**') }}
- name: Anchor Build
working-directory: examples/feeds/01_feed_client
run: pnpm build
- name: Anchor Test
working-directory: examples/feeds/01_feed_client
run: anchor test