Update cw-orch to latest (#513) #2798
This file contains 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: framework-test | |
permissions: | |
contents: read | |
on: | |
push: | |
branches: [main] | |
paths: | |
- framework/** | |
pull_request: | |
paths: | |
- framework/** | |
env: | |
CODECOV_TOKEN: 34d23f19-66bf-40e6-a2c9-f222c9e9f614 | |
SCCACHE_GHA_ENABLED: "true" | |
RUSTC_WRAPPER: "sccache" | |
jobs: | |
required: | |
runs-on: ubuntu-latest | |
name: ubuntu / stable | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: | | |
${{ secrets.SSH_PRIVATE_KEY_MULTI_TEST }} | |
${{ secrets.SSH_PRIVATE_KEY_CW_ORCH_INTERCHAIN }} | |
- name: Setup sccache | |
uses: mozilla-actions/[email protected] | |
with: | |
version: "v0.8.1" | |
- name: Install stable | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- name: cargo generate-lockfile | |
if: hashFiles('Cargo.lock') == '' | |
working-directory: ./framework | |
run: cargo generate-lockfile | |
- name: Free up disk space on runner | |
run: | | |
df -h | |
rm -rf /usr/share/dotnet/ | |
sudo apt-get remove -y 'php.*' || true | |
sudo apt-get remove -y '^dotnet-.*' || true | |
sudo apt-get remove -y azure-cli firefox powershell mono-devel || true | |
sudo apt-get autoremove -y || true | |
sudo apt-get clean || true | |
df -h | |
shell: bash | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: "framework -> target" | |
- name: cargo test --locked | |
working-directory: ./framework | |
run: cargo test --locked --all-features --all-targets | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: tickle coverage | |
env: | |
CCI_TOKEN: ${{ secrets.CCI_TOKEN }} | |
CIRCLE_BRANCH: ${{ github.head_ref }} | |
run: | | |
echo $CIRCLE_BRANCH; | |
curl -X POST \ | |
-H "Circle-Token: ${CCI_TOKEN}" \ | |
-H 'Content-Type: application/json' \ | |
-H 'Accept: application/json' \ | |
-d "{ | |
\"branch\": \"${CIRCLE_BRANCH}\", | |
\"parameters\": { | |
\"GHA_Meta\": \"framework_coverage\" | |
} | |
}" https://circleci.com/api/v2/project/gh/AbstractSDK/abstract/pipeline |