Skip to content

Commit

Permalink
chore: CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
codewithgun committed Jan 20, 2025
1 parent 2c9ffdb commit 565e375
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci-pr-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CPI example

on:
pull_request:
branches:
- main

jobs:
program_changed_files:
runs-on: ubuntu-20.04
outputs:
program: ${{steps.changed-files-specific.outputs.any_changed}}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get specific changed files
id: changed-files-specific
uses: tj-actions/changed-files@v18.6
with:
files: |
programs/cpi-example
cpi_example_test:
runs-on: ubuntu-20.04
needs: program_changed_files
if: needs.program_changed_files.outputs.program == 'true'
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.76
override: true
- uses: Swatinem/rust-cache@v2
- run: cargo test -- --nocapture
shell: bash

0 comments on commit 565e375

Please sign in to comment.