Skip to content

Commit

Permalink
SPL Stake Pool extract yield to stake account. Upload test artifacts …
Browse files Browse the repository at this point in the history
…in CI
  • Loading branch information
dankelleher committed Jan 23, 2024
1 parent caa212d commit 0e9f176
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/actions/cache-solana/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: install and Cache Solana binaries
runs:
using: composite
steps:
- uses: actions/cache@v3
- uses: actions/cache@v4
id: cache-solana
with:
path: |
Expand Down
48 changes: 28 additions & 20 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: ./.github/actions/cache-solana

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '18'

- name: Cache node dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
Expand All @@ -41,7 +41,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Cache rust
uses: Swatinem/rust-cache@v2
- name: Run fmt
Expand All @@ -53,11 +53,11 @@ jobs:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Cache rust
uses: Swatinem/rust-cache@v2
- uses: ./.github/actions/cache-solana
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
Expand All @@ -79,11 +79,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Cache rust
uses: Swatinem/rust-cache@v2
- uses: ./.github/actions/cache-solana
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
Expand All @@ -99,14 +99,14 @@ jobs:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'

- name: Cache node dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
Expand All @@ -126,14 +126,14 @@ jobs:
needs: yarn-build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'

- name: Cache node dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
Expand All @@ -154,15 +154,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'

- name: Cache node dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
Expand All @@ -183,7 +183,7 @@ jobs:
path: .

- uses: ./.github/actions/cache-solana
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
Expand All @@ -196,8 +196,16 @@ jobs:
#yarn anchor test --skip-build packages/tests/src/functional/beams/core.test.ts
yarn test
- uses: actions/upload-artifact@v3
- name: upload program logs
uses: actions/upload-artifact@v3
if: always()
with:
name: program-logs
path: .anchor/program-logs/*
path: .anchor/program-logs/*

- name: upload test report
uses: actions/upload-artifact@v3
if: always()
with:
name: test-report
path: mochawesome-report/*

0 comments on commit 0e9f176

Please sign in to comment.