Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
igorbrasileiro committed May 16, 2022
1 parent decc92e commit 8a27822
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/publish.yml
@@ -1,12 +1,15 @@
'on':
name: lint, test and publish
on:
push:
branches:
- '*'
- 'feat/batch-tests'
- 'main'
- '**'
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/cache@v1
with:
path: ~/.cargo/registry
Expand All @@ -22,7 +25,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
Expand All @@ -37,7 +40,7 @@ jobs:
- os: ubuntu-latest
- os: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/cache@v1
with:
path: ~/.cargo/registry
Expand All @@ -53,8 +56,11 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
command: check
- uses: actions-rs/cargo@v1
with:
command: test
Expand All @@ -66,7 +72,7 @@ jobs:
lints:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/cache@v1
with:
path: ~/.cargo/registry
Expand All @@ -82,7 +88,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: nightly
override: true
components: 'rustfmt, clippy'
- uses: actions-rs/cargo@v1
Expand Down Expand Up @@ -174,7 +180,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
Expand Down Expand Up @@ -229,7 +235,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
Expand Down

0 comments on commit 8a27822

Please sign in to comment.