Skip to content

Commit

Permalink
CI: Dry run cargo publish for every commit
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniusnaumann committed Oct 20, 2023
1 parent 808ea49 commit e98e2e7
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Build

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

env:
CARGO_TERM_COLOR: always
Expand All @@ -13,10 +13,12 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check
run: cargo check --verbose
- name: Build
run: cargo build --verbose
- name: Test
run: cargo test --verbose
- uses: actions/checkout@v3
- name: Check
run: cargo check --verbose
- name: Build
run: cargo build --verbose
- name: Test
run: cargo test --verbose
- name: Publish (Dry Run)
run: cargo publish --dry-run

0 comments on commit e98e2e7

Please sign in to comment.