Change pfm forex apis to version 2 #41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| check: | |
| name: Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: TruffleHog Leaks Scan | |
| uses: trufflesecurity/trufflehog@v3.91.2 | |
| with: | |
| extra_args: --only-verified | |
| - name: Cache run data | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| target | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Install stable toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: 1.91.1 | |
| override: true | |
| - name: Run cargo check | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: check | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| needs: check | |
| steps: | |
| - name: Checkout codebase | |
| uses: actions/checkout@v6 | |
| - name: Cache run data | |
| id: cache-cargo | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| ~/.cargo/bin | |
| target | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Install nightly toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: nightly | |
| override: true | |
| components: llvm-tools-preview | |
| - if: ${{ steps.cache-cargo.outputs.cache-hit != 'true' }} | |
| name: Install grcov | |
| run: make install | |
| - name: Debug show nightly sysroot & llvm tools | |
| run: | | |
| rustc +nightly --version | |
| rustc +nightly --print sysroot | |
| ls $(rustc +nightly --print sysroot)/bin || true | |
| ls $(rustc +nightly --print sysroot)/lib/rustlib/*/bin || true | |
| grcov --version || true | |
| - name: Run test | |
| run: make test | |
| - name: Run coverage | |
| run: make cover | |
| - name: Upload lcov.info as artifact (debug) | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: lcov-info | |
| path: target/debug/lcov.info | |
| - name: Upload coverage report to Coveralls | |
| uses: coverallsapp/github-action@v2 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| path-to-lcov: ./target/debug/lcov.info |