Skip to content

Commit

Permalink
attempt 2 - commenting out test job to save resources while I debug this
Browse files Browse the repository at this point in the history
  • Loading branch information
amika-sq committed Dec 1, 2023
1 parent 4e01d04 commit 23b80f9
Showing 1 changed file with 16 additions and 21 deletions.
37 changes: 16 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ env:
CARGO_TERM_COLOR: always

jobs:
test:
name: cargo test
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
rust: [stable, nightly]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
- name: Test
run: cargo test --workspace
# test:
# name: cargo test
# strategy:
# matrix:
# os: [ ubuntu-latest, macos-latest, windows-latest ]
# rust: [stable, nightly]
# runs-on: ${{ matrix.os }}
# steps:
# - uses: actions/checkout@v4
# - name: Set up Rust
# uses: actions-rust-lang/setup-rust-toolchain@v1
# with:
# toolchain: ${{ matrix.rust }}
# - name: Test
# run: cargo test --workspace
format:
name: cargo fmt
runs-on: ubuntu-latest
Expand All @@ -42,20 +42,15 @@ jobs:
components: rustfmt
- name: Rustfmt Check
uses: actions-rust-lang/rustfmt@v1
- name: Save Failure Summary (if needed)
if: failure()
run: echo "$GITHUB_STEP_SUMMARY" > summary.md
- name: Comment Failure Summary (if needed)
if: failure() && github.event_name == 'pull_request'
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const fs = require('fs');
const summary = fs.readFileSync('summary.md', 'utf8');
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: summary
body: $GITHUB_STEP_SUMMARY
});

0 comments on commit 23b80f9

Please sign in to comment.