Skip to content

Commit

Permalink
I feel so dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
Lurk committed Oct 15, 2023
1 parent 97784f0 commit 2588176
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 30 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ jobs:
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
- name: Set env
run: |
echo "CLOUDINARY_API_SECRET=$CLOUDINARY_API_SECRET" >> "$GITHUB_ENV"
echo "CLOUDINARY_API_KEY=$CLOUDINARY_API_KEY" >> "$GITHUB_ENV"
echo "CLOUDINARY_CLOUD_NAME=$CLOUDINARY_CLOUD_NAME" >> "$GITHUB_ENV"
- name: cargo test --locked
env:
CLOUDINARY_API_SECRET: ${{ secrets.CLOUDINARY_API_SECRET }}
CLOUDINARY_API_KEY: ${{ secrets.CLOUDINARY_API_KEY }}
CLOUDINARY_CLOUD_NAME: ${{ secrets.CLOUDINARY_CLOUD_NAME }}
run: cargo test --locked --all-features --all-targets
# https://twitter.com/alcuadrado/status/1571291687837732873
update:
Expand All @@ -50,13 +49,11 @@ jobs:
- name: cargo update
if: hashFiles('Cargo.lock') != ''
run: cargo update
- name: Set env
run: |
echo "CLOUDINARY_API_SECRET=$GITHUB_SHA_SHORT" >> "$GITHUB_ENV"
echo "CLOUDINARY_API_KEY=$CLOUDINARY_API_KEY" >> "$GITHUB_ENV"
echo "CLOUDINARY_CLOUD_NAME=$CLOUDINARY_CLOUD_NAME" >> "$GITHUB_ENV"
- name: cargo test
if: hashFiles('Cargo.lock') != ''
run: cargo test --locked --all-features --all-targets
env:
RUSTFLAGS: -D deprecated
CLOUDINARY_API_SECRET: ${{ secrets.CLOUDINARY_API_SECRET }}
CLOUDINARY_API_KEY: ${{ secrets.CLOUDINARY_API_KEY }}
CLOUDINARY_CLOUD_NAME: ${{ secrets.CLOUDINARY_CLOUD_NAME }}
40 changes: 20 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,19 @@ jobs:
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
- name: Set env
run: |
echo "CLOUDINARY_API_SECRET=$CLOUDINARY_API_SECRET" >> "$GITHUB_ENV"
echo "CLOUDINARY_API_KEY=$CLOUDINARY_API_KEY" >> "$GITHUB_ENV"
echo "CLOUDINARY_CLOUD_NAME=$CLOUDINARY_CLOUD_NAME" >> "$GITHUB_ENV"
# https://twitter.com/jonhoo/status/1571290371124260865
- name: cargo test --locked
env:
CLOUDINARY_API_SECRET: ${{ secrets.CLOUDINARY_API_SECRET }}
CLOUDINARY_API_KEY: ${{ secrets.CLOUDINARY_API_KEY }}
CLOUDINARY_CLOUD_NAME: ${{ secrets.CLOUDINARY_CLOUD_NAME }}
run: cargo test --locked --all-features --all-targets
# https://github.com/rust-lang/cargo/issues/6669
- name: cargo test --doc
env:
CLOUDINARY_API_SECRET: ${{ secrets.CLOUDINARY_API_SECRET }}
CLOUDINARY_API_KEY: ${{ secrets.CLOUDINARY_API_KEY }}
CLOUDINARY_CLOUD_NAME: ${{ secrets.CLOUDINARY_CLOUD_NAME }}
run: cargo test --locked --all-features --doc
minimal:
runs-on: ubuntu-latest
Expand All @@ -53,12 +56,11 @@ jobs:
run: rustup default stable
- name: cargo update -Zminimal-versions
run: cargo +nightly update -Zminimal-versions
- name: Set env
run: |
echo "CLOUDINARY_API_SECRET=$CLOUDINARY_API_SECRET" >> "$GITHUB_ENV"
echo "CLOUDINARY_API_KEY=$CLOUDINARY_API_KEY" >> "$GITHUB_ENV"
echo "CLOUDINARY_CLOUD_NAME=$CLOUDINARY_CLOUD_NAME" >> "$GITHUB_ENV"
- name: cargo test
env:
CLOUDINARY_API_SECRET: ${{ secrets.CLOUDINARY_API_SECRET }}
CLOUDINARY_API_KEY: ${{ secrets.CLOUDINARY_API_KEY }}
CLOUDINARY_CLOUD_NAME: ${{ secrets.CLOUDINARY_CLOUD_NAME }}
run: cargo test --locked --all-features --all-targets
os-check:
runs-on: ${{ matrix.os }}
Expand All @@ -76,12 +78,11 @@ jobs:
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
- name: Set env
run: |
echo "CLOUDINARY_API_SECRET=$CLOUDINARY_API_SECRET" >> "$GITHUB_ENV"
echo "CLOUDINARY_API_KEY=$CLOUDINARY_API_KEY" >> "$GITHUB_ENV"
echo "CLOUDINARY_CLOUD_NAME=$CLOUDINARY_CLOUD_NAME" >> "$GITHUB_ENV"
- name: cargo test
env:
CLOUDINARY_API_SECRET: ${{ secrets.CLOUDINARY_API_SECRET }}
CLOUDINARY_API_KEY: ${{ secrets.CLOUDINARY_API_KEY }}
CLOUDINARY_CLOUD_NAME: ${{ secrets.CLOUDINARY_CLOUD_NAME }}
run: cargo test --locked --all-features --all-targets
coverage:
runs-on: ubuntu-latest
Expand All @@ -99,12 +100,11 @@ jobs:
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
- name: Set env
run: |
echo "CLOUDINARY_API_SECRET=$CLOUDINARY_API_SECRET" >> "$GITHUB_ENV"
echo "CLOUDINARY_API_KEY=$CLOUDINARY_API_KEY" >> "$GITHUB_ENV"
echo "CLOUDINARY_CLOUD_NAME=$CLOUDINARY_CLOUD_NAME" >> "$GITHUB_ENV"
- name: cargo llvm-cov
env:
CLOUDINARY_API_SECRET: ${{ secrets.CLOUDINARY_API_SECRET }}
CLOUDINARY_API_KEY: ${{ secrets.CLOUDINARY_API_KEY }}
CLOUDINARY_CLOUD_NAME: ${{ secrets.CLOUDINARY_CLOUD_NAME }}
run: cargo llvm-cov --locked --all-features --lcov --output-path lcov.info
- name: Upload to codecov.io
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 2588176

Please sign in to comment.