Skip to content

Commit ce70571

Browse files
authored
Merge pull request #273 from rusterlium/actions-rs-deprecations-1
Update Github workflow for clippy/rustfmt
2 parents 5da9019 + 459a72b commit ce70571

1 file changed

Lines changed: 15 additions & 11 deletions

File tree

.github/workflows/main.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,38 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [master]
6+
tags: ["*"]
7+
pull_request:
8+
branches: ["*"]
49

510
jobs:
611
clippy:
712
name: Clippy
813
runs-on: ubuntu-latest
914
steps:
1015
- uses: actions/checkout@v1
11-
- id: component
12-
uses: actions-rs/components-nightly@v1
16+
- uses: actions-rs/toolchain@v1
1317
with:
14-
component: clippy
15-
- run: rustup component add clippy
18+
toolchain: nightly
19+
components: clippy
20+
override: true
1621
- uses: actions-rs/clippy-check@v1
1722
with:
1823
token: ${{ secrets.GITHUB_TOKEN }}
19-
args: --all-targets --all-features -- -D warnings
24+
args: --all-targets --all-features
2025

2126
format:
2227
name: Format
2328
runs-on: ubuntu-latest
2429
steps:
2530
- uses: actions/checkout@v1
26-
- id: component
27-
uses: actions-rs/components-nightly@v1
31+
- uses: actions-rs/toolchain@v1
2832
with:
29-
component: rustfmt
30-
- name: Install rustfmt
31-
run: rustup component add rustfmt
33+
toolchain: nightly
34+
components: rustfmt
35+
override: true
3236

3337
- name: Install Erlang/Elixir
3438
uses: actions/setup-elixir@v1.0.0

0 commit comments

Comments
 (0)