Skip to content

Pull Request for 9/merge by zaycev #12

Pull Request for 9/merge by zaycev

Pull Request for 9/merge by zaycev #12

Workflow file for this run

name: Pull Request
run-name: Pull Request for ${{ github.ref_name }} by ${{ github.actor }}
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions: write-all
on:
pull_request: {}
workflow_dispatch: {}
push:
branches:
- trunk-merge/**
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest-8-cores
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build -q --all
- name: Install JUnit transformer
run: cargo install cargo2junit
- name: Run tests
run: cargo test --verbose -- -Z unstable-options --format json --report-time | cargo2junit > ${{ github.workspace }}/target/junit.xml
- name: Upload results using action
if: "!cancelled()"
uses: trunk-io/analytics-uploader@main
with:
junit-paths: ${{ github.workspace }}/target/**/*junit.xml
org-slug: trunk
token: ${{ secrets.TRUNK_PROD_ORG_API_TOKEN }}
- name: Upload results cli build from source
if: "!cancelled()"
env:
TRUNK_API_ADDRESS: https://api.trunk.io/v1/metrics/createBundleUpload
run: |
cargo run -- upload \
--junit-paths ${{ github.workspace }}/target/**/*junit.xml \
--org-slug trunk-staging-org \
--token ${{ secrets.TRUNK_STAGING_ORG_API_TOKEN }}